04pallav
9/13/2017 - 9:27 PM

Selecting only numeric from a df

Selecting only numeric from a df

nums=sapply(x, is.numeric)
x[,nums]



library("dplyr")
select_if(x, is.numeric)