Learn R Programming

kimisc (version 1.0.0)

export: Exports to an environment

Description

This function is a wrapper around export.list() that exports variables by their name to another environment.

Usage

export(..., target.env = .GlobalEnv)

Value

Invisible NULL.

Arguments

...

variables to be exported.

target.env

The target environment. Use the global environment by default.

Author

Roland

References

https://stackoverflow.com/a/17484932/946850

See Also

export.list(), assign()

Examples

Run this code
local({
  newly.created.var <- 5
  export(newly.created.var)
})
newly.created.var
rm(newly.created.var)

Run the code above in your browser using DataLab