NamesToObjects: NamesToObjects

Description Usage Arguments Details Value Examples

View source: R/Objects.R

Description

Returns a list of the objects named in x

Usage

1
NamesToObjects(x, envir)

Arguments

x

Vector or list of named objects

envir

Environment in which to search

Details

Return a list of named objects

x is given as either a character vector containing names of objects to return, or a list. If x is a list, it will first be converted to character. If objects do not exist, no error or warning will be generated.

Value

A list of objects

Examples

1
2
3
4
5
6
## Not run: 
mojo <- 4
gonzo <- "Moe"
lstObjects <- NamesToObjects(c("mojo", "gonzo"))

## End(Not run)

PirateGrunt/represtools documentation built on Oct. 5, 2019, 6:37 a.m.