Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r as.numeric all columns except

num.cols <- c('ws','wd','humidity')
weatherDF[num.cols] <- sapply(weatherDF[num.cols], as.numeric)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #columns
ADD COMMENT
Topic
Name
7+2 =