I am getting the following error in my script. I am very very new to R and have obtained this script from another person.
#read file in (dummy data) starburst.plot<-function(affy.fold, affy.FDR)(ifelse( ((affy.fold) >=0), -1*log10(affy.FDR), 1*log10(affy.FDR))) starburst.plot<-function(meth.fold, meth.FDR)(ifelse( ((meth.fold) >=0), -1*log10(meth.FDR), 1*log10(affy.FDR))) At my next command, I get the following error: > g.ex.affy <- starburst.plot(data(,"affy.FOLD"), data(,"affy.FDR")) Error in log(c("", "affy.FDR"), 10) : Non-numeric argument to mathematical function In addition: Warning messages: 1: In data(, "affy.FOLD") : data set '' not found Could somebody please help me figure out why this isnt' working. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Please-help-with-this-error-new-to-tp2546517p2546517.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.