'Converting an Entire Column of a data set from excel Using R (Character to Numeric)

Converting an Entire Column of a data set from excel Using R What I need to do is convert an entire column of Characters to Numeric so could use cluster analysis on the data

e <- d %>% select(c(15, 16, 18, 20))
sapply(e, class)
g
g <- as.numeric(as.character(e))
sapply(g, class)
g
summary(g)
r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source