[R] using "for" loop

From: alessandro carletti <alxmilton_at_yahoo.it>
Date: Fri 05 Aug 2005 - 18:58:08 EST


Hi everybody,
how can I create a loop for plotting parameters for each level of a variable, for example:

NAME temperature depth

aaa      23           -1
aaa      22           -2
aaa      24           -1
bbb      23           -4
bbb      23           -1 
aaa      22           -1
bbb      22            0

I mean, I would like R to plot temperature vs depth for aaa, then another plot for bbb, and so on.

Is it for loop ok?
Thanks



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 05 19:02:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:42 EST