as.list.Object: Convert a variable of class Object to a list

Description Usage Arguments Value Note Author(s) Examples

Description

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.

Usage

1

Arguments

x

Variable of class Object

...

Other object to include

Value

Returns a list with values equivalent to the Object.

Note

Values that contain functions will be assigned to .GlobalEnv enviroment.

Author(s)

Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K.

Examples

1
2
3
4
5
6
xO <- Object()
xO$var = "hello"
class(xO)
xOL <- as.list(xO)
xOL
class(xOL)

galgo documentation built on May 2, 2019, 4:20 a.m.