to_env: Convert a list to an environment.

Description Usage Arguments Value

View source: R/utils.R

Description

If the list if of length 0, be careful to not use as.environment as it will break.

Usage

1
to_env(x)

Arguments

x

list. The list to convert to an environment.

Value

an environment with keys coming from the names of x and values coming from the respective values of x.


robertzk/refclass documentation built on May 25, 2017, 6:37 a.m.