Hi 1-I cannot find a way to add a topic in the discussion board. 2-I have written and tested the script gemonitor.R in RGUI and it works fine; however when I run the
source("http://spark-public.s3.amazonaws.com/compdata/scripts/getmonitor-test.R") getmonitor.testscript() I get the following error message Error in data$sulfate : $ operator is invalid for atomic vectors In addition: Warning message: In getmonitor.testscript() : NAs introduced by coercion I cannot understand why. My gmonitor.R script is as follows. # "getmonitor.R" getmonitor<- function(id, directory,summerize=FALSE) { xid<-toString(id) xid<-paste("000",xid,sep="") xid<-substr(xid, nchar(xid)-2,nchar(xid)) f<-sub(" ","",paste(xid,".csv",sep="")) f<-sub(" ","",paste(directory, "/",f,sep="")) ff<-read.csv(f) print(ff) if (summerize == TRUE){ print(summary(ff)) } } 3-What should I submit, the output file or the code? Thanks Farhad [[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.