[R] cbind, row names

soeren.vogel at eawag.ch soeren.vogel at eawag.ch
Fri Jan 29 11:49:23 CET 2010


Hello,

I read the help as well as the examples, but I can not figure out why  
the following code does not produce the *given* row names, "x" and "y":

x <- 1:20
y <- 21:40
rbind(
   x=cbind(N=length(x), M=mean(x), SD=sd(x)),
   y=cbind(N=length(y), M=mean(y), SD=sd(y))
)

Could you please help?

Thank you

Sören



More information about the R-help mailing list