Re: [Rd] Underlying representation for rownames

2007-10-18 Thread Prof Brian Ripley
I think ?.row_names_info is what you are looking for (although data frames have row.names and matrices have rownames, pace the subject line). On Thu, 18 Oct 2007, hadley wickham wrote: > Is it possible to get at the underlying representation of row names - > ie. what you see in the output from d

[Rd] Underlying representation for rownames

2007-10-18 Thread hadley wickham
Is it possible to get at the underlying representation of row names - ie. what you see in the output from dput: > df <- data.frame(1:4) > dput(df) structure(list(X1.4 = 1:4), .Names = "X1.4", row.names = c(NA, -4L), class = "data.frame") I would like to be able to tell if a data frame has the def