Selecting only numeric from a df
nums=sapply(x, is.numeric) x[,nums] library("dplyr") select_if(x, is.numeric)