[R] Please help with this error - new to

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Mon Sep 20 07:45:01 CEST 2010


You don't appear to have read the posting guide... you have not provided any sample data.  From the error it appears that you have some problem with your data or your handling of the data when you imported it.

"c.wright at uq.edu.au" <c.wright at uq.edu.au> wrote:

>
>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 at 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.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list