Re: [R] Error with toString

2010-02-02 Thread anna
Ok Peter I think you were right about pointing out the RBloomberg package because here is what I get with getAnywhere('toString'): 2 differing objects matching ‘toString’ were found in the following places package:RBloomberg package:base namespace:base Use [] to view one of them Warning mess

Re: [R] Error with toString

2010-02-02 Thread Peter Ehlers
You have another toString function hanging around. Your result is exactly what I get from methods('toString') after I define toString <- function(x) x You could try getAnywhere('toString') -Peter anna wrote: Peter, here is what I get for methods('toString'): [1] toString.default Warning m

Re: [R] Error with toString

2010-02-02 Thread anna
Peter, here is what I get for methods('toString'): [1] toString.default Warning message: In methods("toString") : function 'toString' appears not to be generic - Anna Lippel -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1460296.html Sent from the R hel

Re: [R] Error with toString

2010-02-02 Thread Peter Ehlers
I don't think that rJava has a toString function. It does use the function in base. I see a function toString.XMLNode() in the XML package which is used as toString(x), so maybe that's where your problem lies; but I didn't see the XML package in your list of attached packages. Anyway, here are tw

Re: [R] Error with toString

2010-02-02 Thread anna
ok so this way it worked...it's probably calling the toString function from another package but I don't understand which one...obrigadinha Henrique! - Anna Lippel -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1460286.html Sent from the R help mailing li

Re: [R] Error with toString

2010-02-02 Thread Henrique Dallazuanna
Try: base::toString On Tue, Feb 2, 2010 at 5:16 PM, anna wrote: > > isn't there a way to specify from which library I am taking the method > from...like rjava.toString or base.toString.. > > - > Anna Lippel > -- > View this message in context: > http://n4.nabble.com/Error-with-toString-tp12

Re: [R] Error with toString

2010-02-02 Thread anna
isn't there a way to specify from which library I am taking the method from...like rjava.toString or base.toString.. - Anna Lippel -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1460262.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Error with toString

2010-02-02 Thread Peter Ehlers
Anna, Try omitting pkg:RBloomberg. If you really need to use that package, you will have to install the non-CRAN package RDCOMClient from omegahat. I still don't see why toString() wouldn't do its job, even with RBloomberg loaded. -Peter Ehlers anna wrote: Here is the list of the loaded pack

Re: [R] Error with toString

2010-02-02 Thread anna
No I just did it on the R console, I built the vector just before. - Anna Lippel -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1460192.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] Error with toString

2010-02-02 Thread anna
Here is the list of the loaded packages: "package:lattice" "package:fSeries" [5] "package:fCalendar""package:fEcofin" "package:fUtilities" "package:MASS" [9] "package:robustbase" "package:caTools"

Re: [R] Error with toString

2010-02-02 Thread Peter Ehlers
anna wrote: Romain, to keep it simple, I reproduced the example that you can find in the toString function help and I still got the same error: x <- c("a", "b", "aaa") toString(x) Error in toString(x) : could not find function ".jcall" .jcall() is an rJava function. toString() is a ba

Re: [R] Error with toString

2010-02-02 Thread jim holtman
What packages are loaded? On the basic system, it works fine: > toString(123) [1] "123" > toString(c('a', 'b', 'zz')) [1] "a, b, zz" On Tue, Feb 2, 2010 at 12:17 PM, anna wrote: > > Romain, to keep it simple, I reproduced the example that you can find in the > toString function help an

Re: [R] Error with toString

2010-02-02 Thread anna
Romain, to keep it simple, I reproduced the example that you can find in the toString function help and I still got the same error: x <- c("a", "b", "aaa") toString(x) Error in toString(x) : could not find function ".jcall" - Anna Lippel -- View this message in context: http://n

Re: [R] Error with toString

2010-01-26 Thread Romain Francois
On 01/26/2010 04:19 PM, anna wrote: Romain, I used the paste for numbers to as you told me and it worked. For the toString() function well I called it from the R console and that's what it returned me... Yes. I understood that the first time. and I asked you to provide more details about your

Re: [R] Error with toString

2010-01-26 Thread anna
Romain, I used the paste for numbers to as you told me and it worked. For the toString() function well I called it from the R console and that's what it returned me... -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1293039.html Sent from the R help mailing li

Re: [R] Error with toString

2010-01-26 Thread anna
thanks! I thought it was a concatenator like in vb -- View this message in context: http://n4.nabble.com/Error-with-toString-tp1290327p1292949.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://s

Re: [R] Error with toString

2010-01-26 Thread S Ellison
"name" & toString(20) is from Excel or OpenOffice; & means 'logical and' in R, not string concatenation. paste() is simpler; sprintf() is more precise as to decimal places and format. >>> anna 26/01/2010 14:09:15 >>> Hello there, I want to create a string from strings and numbers, here is m

Re: [R] Error with toString

2010-01-26 Thread jim holtman
?paste "&" is a logical operator, not string concatenation. On Tue, Jan 26, 2010 at 9:09 AM, anna wrote: > > Hello there, I want to create a string from strings and numbers, here is my > code: > str <- "name" & toString(20) > but it returns me this error: > Error in toString(20) : could not find

Re: [R] Error with toString

2010-01-26 Thread Romain Francois
On 01/26/2010 03:09 PM, anna wrote: Hello there, I want to create a string from strings and numbers, here is my code: str<- "name"& toString(20) Where did you get that syntax from ? You need to use paste. > paste( "name", 20 ) [1] "name 20" but it returns me this error: Error in toString(20