I find this odd because it doesn't appear to happen in larger datasets. I
have the following data set ENV with the first column set as row.names:

> ENV
         TPlog
001S29H  0.601
002S42H  0.602
003S43S  0.779
004S43S  0.702
005S51H  0.978
006S52P  2.718

If I apply > ENV <- ENV[-1,]  # remove first row of data (right?)
...ENV comes back as:

[1] 0.602 0.779 0.702 0.978 2.718

So I am losing the row name info. I also notice that, if the first two
values in the TPlog column are the same, both values are removed! What's
going on, and why does this same thing not happen in more complex datasets
with more than one column of values?

Many thanks - Euan.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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