Re: [S] how to remove the display of row-numbers of a data.frame

Patrick Connolly (
Fri, 3 Apr 1998 09:59:39 +1200 (NZST)

I made a little mistake in my previous post which went:

According to Alan Zaslavsky:

|> so if you have a data.frame X, you can print without row names as follows:
|> Xmat_as.matrix(x)
|> dimnames(Xmat)[[1]]_character(nrow(Xmat))
|> print(as.matrix(Xmat), quote = F, right = T)

I don't understand why the print statement is necessary. In my
experience, as.matrix(Xmat) is sufficient.

What I meant was works fine with no quotes on the
character columns. For some reason, the data frame is not checked to
see if the row names are unique. I call that a feature, so I'd hate
to see it fixed.


This message was distributed by To unsubscribe
send e-mail to with the BODY of the
message: unsubscribe s-news