[R] edit.row.names taking row names from the edited dataframe

Ottorino-Luca Pantani ottorino-luca.pantani at unifi.it
Wed Aug 19 17:36:13 CEST 2009


Erik Iverson ha scritto:
>
> This really has nothing to do with the "row names" issue you mention, as far as I can tell.  It has to do with this: 
>
> http://stackoverflow.com/questions/1195826/dropping-factor-levels-in-a-subsetted-data-frame-in-r
>
> Best,
> Erik Iverson 
>   
Perhaps you may also take a look at this
http://wiki.r-project.org/rwiki/doku.php?id=tips:data-manip:drop_unused_levels

df.mydata$problemFactor <- df.mydata$problemFactor[, drop = TRUE]


8rino




More information about the R-help mailing list