Re: [R] pass lm( ) a char vector as the variables to be included

2007-11-26 Thread Emmanuel Charpentier
Gavin Simpson a écrit : > On Mon, 2007-11-26 at 14:17 +, [EMAIL PROTECTED] wrote: >>> Here are the codes of the example of lm( ): >>> >>> ## Annette Dobson (1990) "An Introduction to >>> Generalized Linear Models". >>> ## Page 9: Plant Weight Data. >>> ctl <- >>> (4.17,5.58,5.18,6.11,4.50,4.61,

Re: [R] pass lm( ) a char vector as the variables to be included

2007-11-26 Thread Gavin Simpson
On Mon, 2007-11-26 at 14:17 +, [EMAIL PROTECTED] wrote: > > Here are the codes of the example of lm( ): > > > > ## Annette Dobson (1990) "An Introduction to > > Generalized Linear Models". > > ## Page 9: Plant Weight Data. > > ctl <- > > (4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) > >

Re: [R] pass lm( ) a char vector as the variables to be included

2007-11-26 Thread Richard . Cotton
> Here are the codes of the example of lm( ): > > ## Annette Dobson (1990) "An Introduction to > Generalized Linear Models". > ## Page 9: Plant Weight Data. > ctl <- > (4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) > trt <- > (4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) > group <- gl(2

[R] pass lm( ) a char vector as the variables to be included

2007-11-26 Thread boshao zhang
Dear Everyone in list: I am writing some codes to automate the process of fitting linear models where the names of variables of models are produced and stored in character vectors. But I have problems to pass the vectors to the lm( ) because I don't know how to strip the quotation marks automatical