[R] Multiple frequencies
Laurent Gautier
laurent at genome.cbs.dtu.dk
Wed Apr 24 12:39:59 CEST 2002
On Wed, Apr 24, 2002 at 10:11:18AM +0200, Yannick Wurm wrote:
> Hi!
> I'm having a small problem with an assignment I have to do.
> We want to do an anova on some values, given for four
> different types of medicine. The different sample numbers are
> not identical (eg for molecule A we have 8 values, for B we have
> 14, etc.).
> What would the most elegant way of getting this info into R
> to do an lm be? I usually try to use data.frames but R
> categorically refuses to combine the values (i scan()'d them
> into four vectors) because their row numbers aren't identical.
> (even if I do check.rows = FALSE).
>
> Thanks for your help,
>
> Yannick
>
> ------------------------------------
> yannick.wurm at insa-lyon.fr
> http://homepage.mac.com/yannickwurm/
> tel: 06.16.41.71.92 icq: 22044361
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
It looks like a job for 'factor'...
The following R command should help you to figure out how...
help(factor)
data(InsectSprays)
help(InsectSprays)
Hopin' it helps,
Laurent
--------------------------------------------------------------
Laurent Gautier CBS, Building 208, DTU
PhD. Student D-2800 Lyngby,Denmark
tel: +45 45 25 24 85 http://www.cbs.dtu.dk/laurent
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list