listenv (version 0.8.0)

listenv: Create a list environment

Description

Create a list environment

Usage

listenv(...)

as.listenv(...)

Value

An environment of class listenv.

Arguments

...

(optional) Named and/or unnamed objects to be assigned to the list environment.

Examples

Run this code
x <- listenv(c = 2, a = 3, d = "hello")
print(names(x))
names(x)[2] <- "A"
x$b <- 5:8

y <- as.list(x)
str(y)

z <- as.listenv(y)

Run the code above in your browser using DataLab