Re: [R] Applying do.call to a data.frame using function arguments

2009-08-26 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of miller_2555 > Sent: Wednesday, August 26, 2009 9:32 AM > To: r-help@r-project.org > Subject: Re: [R] Applying do.call to a data.frame using &g

Re: [R] Applying do.call to a data.frame using function arguments (nabble: message 8 of 20)

2009-08-26 Thread nabble . 30 . miller_2555
On Wed, Aug 26, 2009 at 12:47 PM, hadley wickham - > I think you're missing some quotes: > cat(do.call("paste",c(x2,sep='","'))[1], "\n") Thanks - the strings are actually substrings of larger strings (specifically, SQL statements), which will wrap with the leading and trailing quotes (though I sh

Re: [R] Applying do.call to a data.frame using function arguments

2009-08-26 Thread hadley wickham
On Wed, Aug 26, 2009 at 11:31 AM, miller_2555 wrote: > > > miller_2555 wrote: >> >> I'm trying to convert a data.frame to a series of strings (row-wise). >> There was a very good discussion awhile back (2002) entitled "[R] string >> concatenate across rows of a matrix??" where Tony Plate recommende

Re: [R] Applying do.call to a data.frame using function arguments

2009-08-26 Thread miller_2555
miller_2555 wrote: > > I'm trying to convert a data.frame to a series of strings (row-wise). > There was a very good discussion awhile back (2002) entitled "[R] string > concatenate across rows of a matrix??" where Tony Plate recommended the > following two alternatives (x2 is an R object of typ