Hi all, any guy who knows how to print a data frame without column names printed? I didn't find a parameter in print() function to turn off this. Neither in options(). Thanks in advance.
On Thu, 2 Dec 2004, Hu Chen wrote:> Hi all, > any guy who knows how to print a data frame without column names printed? > I didn't find a parameter in print() function to turn off this. > Neither in options().One option is to use write.table() instead of print(). -thomas
Kjetil Brinchmann Halvorsen
2004-Dec-01 22:34 UTC
[R] how to use print() without column names?
Hu Chen wrote:>Hi all, >any guy who knows how to print a data frame without column names printed? >I didn't find a parameter in print() function to turn off this. >Neither in options(). >Thanks in advance. > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > > >If your data.frame is purely numerical, seems like you can do: library(MASS) names(your.df) <- NULL write.matrix(your.df) Kjetil -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra