Answers for "how to convert factor to numeric in r all colluns of dataframe"

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 "how to convert factor to numeric in r all colluns of dataframe"

Browse Popular Code Answers by Language