View source: R/formula.utilities.R
empty_env | R Documentation |
Replace an object's environment with a simple, static environment.
empty_env(object)
base_env(object)
object |
An object with the |
An object of the same type as object
, with updated environment.
f <- y~x
environment(f) # GlobalEnv
environment(empty_env(f)) # EmptyEnv
environment(base_env(f)) # base package environment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.