Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grab

grab extracts the contents of objects in an environment based on their object names as a character vector. The object contents are stored to a list where the names are the object names.


Description

grab extracts the contents of objects in an environment based on their object names as a character vector. The object contents are stored to a list where the names are the object names.

Usage

grab(x, envir = sys.frame())

Arguments

x

character vector providing the exact names of objects in the environment envir.

envir

environment to pull the objects from. Default is the global environment.

Value

list of objects with names x.

Examples

grab(x = c("attitude","mtcars","airquality"))
grab(x = c("mean.default","mean.Date","mean.difftime"))

str2str

Convert R Objects from One Structure to Another

v0.1.1
GPL (>= 2)
Authors
David Disabato [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.