Answers for "r as.numeric all columns except"

0

r as.numeric all columns except

num.cols <- c('ws','wd','humidity')
weatherDF[num.cols] <- sapply(weatherDF[num.cols], as.numeric)
Posted by: Guest on June-04-2021

Code answers related to "r as.numeric all columns except"

Browse Popular Code Answers by Language