I have Age column in the data frame. Age is mentioned as 22,7 18,5 25,4 I need to replace , with decimal. How can I do that in R?
strsplit(as.character(age), ",")
[[1]]
[1] "22" "1"
[[2]]
[1] "14" "7"
[[3]]
[1] "19" "8"
[[4]]
[1] "19" "7"
[[5]]
[1] "22" "6"
[[6]]
[1] "15" "7"