Re: [R] Getting formatted character from call

2009-10-01 Thread Gabor Grothendieck
Please read the last line to every message to r-help. There is no reproducible code in your post. Anyways, it works for me: > class(call("round", 1.5)) [1] "call" > as.character(call("round", 1.5)) [1] "round" "1.5" > format(call("round", 1.5)) [1] "round(1.5)" On Thu, Oct 1, 2009 at 7:58 AM

[R] Getting formatted character from call

2009-10-01 Thread Iago Mosqueira
Hi, I need to get a character vector from an object of class call. But using as.character() returns something based on the internal structure of the object, and not, as I would like, some akin to the output of show() on a call object. Any idea on how to obtain the same output returned by show? T