I only see how to assign values to colnames() in help. Is there a way to remove colnames? colnames(x) <- value
colnames(x) <- NULL On Oct 27, 2009, at 8:09 PM, Peng Yu wrote:> I only see how to assign values to colnames() in help. Is there a way > to remove colnames? > > colnames(x) <- value > > ______________________________________________ > R-help at 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.
Try unname also. On Tue, Oct 27, 2009 at 8:09 PM, Peng Yu <pengyu.ut at gmail.com> wrote:> I only see how to assign values to colnames() in help. Is there a way > to remove colnames? > > colnames(x) <- value > > ______________________________________________ > R-help at 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. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O