r-project.org]
> > On Behalf
> > Of Richard Cotton
> > Sent: Wednesday, March 21, 2012 2:51 PM
> > To: r-devel@r-project.org
> > Subject: [Rd] Why is there no within.environment function?
> >
> > If I want to assign some variables into an environment, it see
; wdunlap tibco.com
>
>
>> -Original Message-
>> From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org]
>> On Behalf
>> Of Richard Cotton
>> Sent: Wednesday, March 21, 2012 2:51 PM
>> To: r-devel@r-project.org
>> Subje
nts
simpler if within.environment existed.
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On
> Behalf
> Of Richard Cotton
> Sent: Wednesday, March 21, 2
On Wed, Mar 21, 2012 at 5:51 PM, Richard Cotton wrote:
> 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
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.lis