"Taka Matzmoto" <sell_mirage_ne at hotmail.com> writes:
> R users,
>
> I posted a message on "error message for row names". I looked at
a saved
> file that has a list structure.
> I found that some of list components have row.names = c(NA, 1000). I
> compared what I did with R.2.3.0 with what I did with R.2.4.0.
>
> Previously, with R.2.3.0, row.names = c("1", "2",
"3", ...., "1000"). What
> do I need to read the list with row.names attributes have NA ?
Not to have saved it like that...
Seriously: Do not use dput() for writing out objects, and if you must,
remember to set control="all".
If you have already created such a file and cannot remake it, the fix
should be to edit the row.names component so that row.names = c(NA,
as.integer(1000)).
I guess we could try harder to see if we can convert rownames to
integer, but the advice to avoid dput still stands.
--
O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907