Displaying 1 result from an estimated 1 matches for "theee".
Did you mean:
thee
2012 Mar 21
2
Why is there no within.environment function?
If I want to assign some variables into an environment, it seems
natural to do something like
e <- new.env()
within(e,
{
x <- 1:5
y <- runif(5)
}
)
This throws an error, since within.environment doesn't exist.? I
realise I can work around it using
as.environment(within(as.list(e),
{
x <- 1:5
y <- runif(5)
}
))
Just wondering why I