Assign Values In a List to Names
Assigns the values in a list to variables in an environment. The
variable names are taken from the names
of the list, so all of
the elements of the list must have non-blank names.
assignList(aList, pos = -1, envir = as.environment(pos), inherits = FALSE)
aList |
a list of values to be assigned to variables with names
given by |
pos |
where to do the assignment. By default, assigns into the current environment. |
envir |
the |
inherits |
should the enclosing frames of the environment be inspected? |
This function is invoked for its side effect, which assigns values to
the variables with names given by names(aList)
.
myList <- list(a = 1, b = 2, c = 3) assignList(myList) ## equivalent to a <- 1; b <- 2; c <- 3
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.