[R] Use of paste with apply()

Thomas Lumley tlumley at u.washington.edu
Mon Nov 7 16:21:59 CET 2005


On Sun, 6 Nov 2005, Kjetil Brinchmann halvorsen wrote:
<examples snipped>
> Why doesn't paste behave in apply as sum?
>

Because sum maps a vector of inputs to a single output, but paste does 
not, unless you use collapse=

 	-thomas




More information about the R-help mailing list