[R] cbind

Peter Ehlers ehlers at ucalgary.ca
Sun Aug 22 01:06:40 CEST 2010


On 2010-08-21 16:53, r.ookie wrote:
> Is there a way to rename the columns to something like A and B in the cbind function?
>
> x<- rnorm(n = 10, mean = 0, sd = 1)
> y<- rnorm(n = 10, mean = 0, sd = 1)
> cbind(x,y)

Unless I completely misunderstand your query, ?cbind tells you:

"...   vectors or matrices. These can be given as named arguments."

Surely, you checked?

   -Peter Ehlers



More information about the R-help mailing list