I'm trying to use ggplot in R to do box plot with jittered data points. The data shown in the environment has length represented by factor instead of numeric. So I want to change it to numeric number so that I can do the plot. I used the following code but it returned NAs introduced by coercion. What should I do now?
um2$length1<-as.numeric(as.character(um2$length))
I tried to use as.numeric and as.character, but it does not work