[R] Quickstart #2

Phil Rhoades philr at mail.austasia.net
Sun Oct 8 00:51:32 CEST 2000

Thanks to Peter Dalgaard & Giovanni E. Romero for help with the previous 
question - following on from that I have another (easy?) question:

I have a file of the form:

	y01 y02 y03 y04 y05  . . . y0n
	y11 y12 y13 y14 y15  . . . y1n
	y21 y22 y23 y24 y25  . . . y2n
	y31 y32 y33 y34 y35  . . . y3n

I want to read in the file and then for each line, I want to be able to:

- calculate the variance on the first two results (eg y01 and y02), and 
then the variance on the first three results (eg y01 - y03) and then the 
variance on the first four results  (eg y01 - y04) etc
- then graph the results so I can see the successive change in the variance 
for each line

ie I want the graphs printed on the same page under each other so I can see 
compare the lines (there will be n-1 points on each graph).


Philip Rhoades

Pricom Pty Limited  (ACN  003 252 275)
GPO Box 3411
Sydney NSW	2001
Mobile:  +61:0411-185-652
Fax:  +61:2:8923-5363
E-mail:  philr at mail.austasia.net

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