I would like to search a data.frame column with string distances and convert them to numeric fields. I would do the same on twitter style dates such as '3 days ago' using the same function.
If I was starting with:
x <- c("5 days ago", "1 day ago", "6 days ago")
I would end up with:
x <- c(120, 24, 144)
Any help would be appreciated!