Skip to content
Prev 317713 / 398506 Next

Extracting Numeric Columns from Data Fram

On Feb 16, 2013, at 12:15 PM, Barry DeCicco <bdecicco2001 at yahoo.com> wrote:

            
Something like the following should work. If your data frame is "DF":

  NewDF <- DF[, sapply(DF, is.numeric)]

Regards,

Marc Schwartz