How to extract just the number from the following dataframe.
last_run<-c('Last run 15 days ago','1st up after 126 days','Last run 21 days ago',
'Last run 22 days ago','1st up after 177 days','1st up after 364 days')%>%
as.data.frame()
The desired output is:
My attempt is:
new_df<-sapply(str_split(last_run$last_run," run"|"after"),'[',2)%>%
as.data.frame()
