Functions are first class objects, so some kind of collision is bound to happen 
if you do this... so don't. 
-- 
Sent from my phone. Please excuse my brevity.

On January 30, 2018 3:11:56 AM PST, "Vito M. R. Muggeo" <vito.mug...@unipa.it> 
wrote:
>dear all,
>Is the following intentional? Am I missing anything in documentation?
>
>d<-data.frame(y=rnorm(10,5,.5),exp=rnorm(10), age=rnorm(10))
>formula(lm(exp(y)~exp+age, data=d))
>#--> exp(y) ~ exp + age
>
>formula(lm(exp(y)~., data=d))
>#--> exp(y) ~ age
>
>variable 'exp' (maybe indicating "experience") is not included in the 
>model. The same happens with 'log' (and other function names, I
>suppose..)
>
>best,
>vito

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to