Hi,
On Thu, May 7, 2009 at 6:36 PM, William Dunlap wrote:
> Do you get similar results rif you use 10 instead of NA
> in your examples, with more spaces if you use 1?
No. Only that particular combination of NA values and strings with
spaces gives the odd result.
> I think this has to do wi
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Sarah Goslee
> Sent: Thursday, May 07, 2009 3:00 PM
> To: r-help
> Subject: [R] paste with apply, spaces and NA
>
> Hello everyone,
>
> I've come up with a problem with usi
Hello everyone,
I've come up with a problem with using paste() inside apply() that I
can't seem to solve.
Briefly, if I'm using paste to collapse the rows of a data frame, AND
the data frame
contains strings with spaces, AND there are NA values in subsequent
columns, then
paste() introduces spaces
3 matches
Mail list logo