[R] as.character.call?

2014-06-03 Thread Spencer Graves
How can I get a call object as a character string? Example: cl - quote(round(10.5)) str(cl) language round(10.5) as.character(cl) [1] round 10.5 How can I get round(10.5)? I can get this answer for this toy problem with paste0(paste(as.character(cl), collapse='('),

Re: [R] as.character.call?

2014-06-03 Thread Henrik Bengtsson
cl - quote(round(10.5)) deparse(cl) [1] round(10.5) /Henrik On Tue, Jun 3, 2014 at 8:07 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: How can I get a call object as a character string? Example: cl - quote(round(10.5)) str(cl) language round(10.5)

Re: [R] as.character.call?

2014-06-03 Thread Spencer Graves
Hi, Henrik: Thanks. I should probably know that by now ... but it didn't come to mind just now. Thanks again. Spencer. On 6/3/2014 8:13 PM, Henrik Bengtsson wrote: cl - quote(round(10.5)) deparse(cl) [1] round(10.5) /Henrik On Tue, Jun 3, 2014 at 8:07 PM, Spencer Graves