[R] Plotting a vector data

2010-11-04 Thread Nasrin Pak
Hi; I have 30 data sets and I managed to take the average of a variable in each set and put them in a vector like variable(It contains NaN data as well). x- matrix( list.files(C:/updated_CFL_Rad_files/2007/11,full=TRUE)) for(i in 1:30) { radiation.data -read.table(x[i], header = TRUE,sep = ,,

Re: [R] Plotting a vector data

2010-11-04 Thread Tal Galili
Hi Nasrin, 1) You didn't define mean.radiation in your code (for example using mean.radiation-NULL) 2) Also, you're using attach, which is a good recipe for forgetting something in your environment which will lead into troubles. 3) You didn't define i (for example i - 1:30) Tal