Re: [R] delete a row in dataframe w/o changing indexing

2011-02-08 Thread David Winsemius
On Feb 8, 2011, at 4:54 PM, Nicolas Gutierrez wrote: Hi All, I'm trying to delete a row from my dataframe "pop" without changing the indexing (column 0) as follows: >pop id birth size xloc yloc weight energy gonad consumed 1 136 13 34 43 0 18 00 2 2

Re: [R] delete a row in dataframe w/o changing indexing

2011-02-08 Thread Phil Spector
Nicolas - I don't think it can be done automatically, but you can use row.names(pop) = 1:nrow(pop) after deleting the column(s) to restore consecutive numbers for the row names. - Phil Spector Statistical Comp