[R] hide row and column-names in cat()

2011-08-24 Thread Tim Haering
Dear list, to prepare data as input for a stand-alone groundwater model I use the cat() function to print data. I want to print a table with print() or cat() but without the row- and column-names. Is this possible? Here a small example my.df - rbind(c(Nr,FraSand,FraSilt,FraClay,pH), c(,

Re: [R] hide row and column-names in cat()

2011-08-24 Thread Dimitris Rizopoulos
try function write.matrix() from package MASS, e.g., library(MASS) write.matrix(my.df) I hope it helps. Best, Dimitris On 8/24/2011 1:46 PM, Tim Haering wrote: Dear list, to prepare data as input for a stand-alone groundwater model I use the cat() function to print data. I want to print a