listenv: Create a list environment

Description Usage Arguments Value Examples

View source: R/listenv.R

Description

Create a list environment

Usage

1
2
3

Arguments

...

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

Value

An environment of class listenv.

Examples

1
2
3
4
5
6
7
8
9
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)

Example output

[1] "c" "a" "d"
List of 4
 $ c: num 2
 $ A: num 3
 $ d: chr "hello"
 $ b: int [1:4] 5 6 7 8

listenv documentation built on Dec. 6, 2019, 1:07 a.m.

Related to listenv in listenv...