Hello,
I've got a data frame with a mix of numeric, integer and factor columns.
I'd like to pull out (or just operate only on) the numeric/integer columns.
Every thing I've found in searches is about how to subset by rows,
or how to operate assuming you have the column names. I'd like to pull
by
Thanks to all who responded!
I've taken those responses, and found out what works:
myNumericColumns<-mydataframe[sapply(mydataframe, is.numeric)]
produces a subset of columns with just the numeric vectors.
Sincerely,
Barry
[[alternative HTML version deleted]]
__
in
âD:\âm which doesnât have a padlock icon. Both had been set to read
only; I removed that.Â
Â
Iâve not been able to find anything on the CRAN website about this.
Â
Has anybody run into this problem before?
Â
Â
Thank you very much,
Â
Barry DeCicco
[[alternative
3 matches
Mail list logo