Re: [R] "unvector" ?

2006-09-11 Thread Peter Dalgaard
"Eric Elguero" <[EMAIL PROTECTED]> writes: > Hi ev'rybody, > > is there a way to pass a vector to a function > expecting separate arguments? > more specifically, I have a character vector, say u > and I want a single string, but > >paste(u) > doesn't work, so I would like something like > >past

Re: [R] "unvector" ?

2006-09-11 Thread Greg Snow
OTECTED] On Behalf Of Eric Elguero Sent: Monday, September 11, 2006 9:08 AM To: r-help@stat.math.ethz.ch Subject: [R] "unvector" ? Hi ev'rybody, is there a way to pass a vector to a function expecting separate arguments? more specifically, I have a character vector, say u and I want a

Re: [R] "unvector" ?

2006-09-11 Thread Rolf Turner
Eric Elguero wrote: > is there a way to pass a vector to a function > expecting separate arguments? In general you can probably do something using do.call(FUN,as.list(v)) where ``v'' is your vector. > more specifically, I have a character vector, say u > and I

[R] "unvector" ?

2006-09-11 Thread Eric Elguero
Hi ev'rybody, is there a way to pass a vector to a function expecting separate arguments? more specifically, I have a character vector, say u and I want a single string, but >paste(u) doesn't work, so I would like something like >paste(unvector(u)). I am interested in a solution to the general