Re: [R] behaviour of formula objects and environment inside functions

2013-03-21 Thread Thomas Alexander Gerds
n there is a typo in the formula. > > Knowing why you want the environment of a formula to be empty would > help answer your question. > > Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > >> -Original Message- From: r-help-boun...@r-project.org >> [ma

Re: [R] behaviour of formula objects and environment inside functions

2013-03-20 Thread William Dunlap
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Charles Berry > Sent: Wednesday, March 20, 2013 7:04 PM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] behaviour of formula objects and environment inside functions > > Thomas Alexande

Re: [R] behaviour of formula objects and environment inside functions

2013-03-20 Thread Charles Berry
Thomas Alexander Gerds biostat.ku.dk> writes: > > Dear List > > I am looking for the recommended way to create a formula inside a > function with an empty environment. I tried several versions (see > below), and one of them seemed to work, but I dont understand why there > is a difference betwe

[R] behaviour of formula objects and environment inside functions

2013-03-20 Thread Thomas Alexander Gerds
Dear List I am looking for the recommended way to create a formula inside a function with an empty environment. I tried several versions (see below), and one of them seemed to work, but I dont understand why there is a difference between .GlobalEnv and the environment inside a function. I would be