Learn R Programming

⚠️There's a newer version (0.9.1) of this package.Take me there.

listenv (version 0.8.0)

Environments Behaving (Almost) as Lists

Description

List environments are environments that have list-like properties. For instance, the elements of a list environment are ordered and can be accessed and iterated over using index subsetting, e.g. 'x <- listenv(a = 1, b = 2); for (i in seq_along(x)) x[[i]] <- x[[i]] ^ 2; y <- as.list(x)'.

Copy Link

Version

Install

install.packages('listenv')

Monthly Downloads

187,320

Version

0.8.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

December 5th, 2019

Functions in listenv (0.8.0)

dim_na

Set the dimension of an object
undim

Removes the dimension of an object
get_variable

Get name of variable for a specific element of list environment
names.listenv

Names of elements in list environment
parse_env_subset

Helper function to infer target from expression and environment
as.list.listenv

List representation of a list environment
$.listenv

Get elements of list environment
listenv

Create a list environment
mapping

Variable name map for elements of list environment
length.listenv

Number of elements in list environment
$<-.listenv

Set an element of list environment