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 = ",", quote = " ",
dec = ".")
  attach(radiation.data)
  names(radiation.data)
  mean.radiation[i]<- mean(PAR_avg,na.rm = TRUE)
         }
How can I plot this vector (mean.radiation[i]) vs i ?
I tried to do so but there was an error:
Error in plot.window(...) : need finite 'ylim' values
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf

-- 
Sincerely

Nasrin  Pak

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to