Skip to content
Prev 350357 / 398506 Next

cbind question, please

G'day Erin,

On Thu, 23 Apr 2015 20:51:18 -0400
Erin Hodgess <erinm.hodgess at gmail.com> wrote:

            
So I guess you want something like:

R> do.call(cbind, sapply(big.char, as.name))
     dog cat tree
[1,]   1   2    5
[2,]   2   3    6
[3,]   3   4    7

Which does not seem to have the problem of confusing the numeric vector
`cat' with the function 'cat'.

HTH.

Cheers,

	Berwin