I noticed, upon further digging around, that the help for the uroot package lists a function ``as.numeric'' in its index. However in my version of the package no such function appears to exist. If I do an ls() of the appropriate search list item, the only ``as.'' item that shows up is ``as.vdate''. Also find() and getAnywhere() indicate only the existence of the base version of as.numeric().
It could be that an as.numeric() function was in an older version of the uroot package and has since been removed (but not deleted from the index). Such a function would in all likelihood be a source of problems. Make sure you are using the latest version of uroot. cheers, Rolf Turner On 2/11/2007, at 10:08 AM, Tom.O wrote: > > ok, I should have figured that out by myself that you might need > some info > about my platform. But here it is. Im on my PC running Vista and I > have > latest version of R. > >> version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 6.0 > year 2007 > month 10 > day 03 > svn rev 43063 > language R > version.string R version 2.6.0 (2007-10-03) > > // regards Tom > > > Rolf Turner-3 wrote: >> >> >> On 2/11/2007, at 9:39 AM, Tom.O wrote: >> >>> >>> Hi >>> When I'm looding the library "uroot" something happens with the >>> basic R code >>> that handles numeric classes. Its looks like a bug but I cant >>> isolate the >>> problem. So hopfully one of you smart guys out there can give me >>> some help. >>> >>> This is how the problem looks. Take for example the vector >>> TEST <- c("1","2") which I want to transform it to a numeric >>> vector. I would >>> use >>> TEST <- as.numeric(TEST) >>> >>> but after i have loaded the "uroot" library I get this error >>> message when I >>> try to perform the as.numeric command: >>> >>> Error in UseMethod("as.double") : no applicable method for >>> "as.double" >> >> I just installed and loaded ``uroot'' and tried your test example. >> It worked without any complaint. This is under >> >>> version >> _ >> platform i386-apple-darwin8.10.1 >> arch i386 >> os darwin8.10.1 >> system i386, darwin8.10.1 >> status >> major 2 >> minor 6.0 >> year 2007 >> month 10 >> day 03 >> svn rev 43063 >> language R >> version.string R version 2.6.0 (2007-10-03) >> >> Your problem must be specific to (a) your version of R (is it the >> latest?), >> or (b) your operating system (both of which you should have specified >> in your >> post), or (c) to your local environment --- with which it would be >> difficult >> to provide any assistance. >> >> cheers, >> >> Rolf Turner >> >> >> ##################################################################### >> # >> Attention:\ This e-mail message is privileged and confid... >> {{dropped:9}} >> >> ______________________________________________ >> 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. >> >> > > -- > View this message in context: http://www.nabble.com/Need-help-on-an- > error%2C-when-looding-library%28uroot%29-tf4733938.html#a13537385 > 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. ###################################################################### Attention:\ This e-mail message is privileged and confid...{{dropped:9}} ______________________________________________ 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.