cbind(A=x, B=y)
On Sat, Aug 21, 2010 at 6:53 PM, r.ookie <r.oo...@live.com> 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) > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.