Answers for "r function to convert factor colums into numeric column"

R
0

r dataframe convert factor to numeric

breast$class <- as.numeric(as.character(breast$class))
Posted by: Guest on June-01-2020
0

r dataframe convert factor to numeric

breast[,'class'] <- as.numeric(as.character(breast[,'class']))
Posted by: Guest on June-01-2020

Code answers related to "r function to convert factor colums into numeric column"

Browse Popular Code Answers by Language