R users
I have a data frame similar to this:
a <- c(\"John, 3 years\") b <- c(\"Mokobe, 11 years\") c <- c(\"Ivan\") df <- rbind(a,b,c) df
with tidyr library:
library(tidyr) df <- as.data.frame(rbind(a,b,c), stringsAsFactors=F) separate(df, V1, c("name", "age"),sep = ",")