[R] Please help with this error - new to

c.wright at uq.edu.au c.wright at uq.edu.au
Mon Sep 20 06:36:11 CEST 2010


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.



More information about the R-help mailing list