I have a column of dataframe which is like "0.496,0.424,0.141". Now I would like to convert each of them to numeric and calculate the mean value. Could anyone tell me how can I do that? Thank you in advance.
string1 <- "0.496,0.424,0.141"
#I have try
mean(as.numeric(string1))
#but it didnot work