The good thing about having way too many functions in the base package: there's always a way to do something, even if it's a bad idea.
list2env(list(a = b, b = a), envir = .GlobalEnv)
This works no matter what the classes of a
and b
are. But I repeat: this is a bad idea.