as.list.Object {galgo} | R Documentation |
Object variables behave as lists, however they are really enviroments. Sometimes it is necesary to use the variable as a list instead of an Object. This function converts the Object to a list.
as.list(x, ...)
x |
Variable of class Object |
Returns a list with values equivalent to the Object.
Values that contain functions will be assigned to .GlobalEnv enviroment.
Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K.
xO <- Object() xO$var = "hello" class(xO) xOL <- as.list(xO) xOL class(xOL)