"Taka Matzmoto" <[EMAIL PROTECTED]> 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
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to