Here is a vector of sites urls and some text where each url and text is separated by space :
v <- c("url www.site1.com this is the text of the site" , "url www.site2.com this is the text of the other site" )
I'm attempting to convert to tidy format :
url text
www.site1.com this is the text of the site
www.site2.com this is the text of the other site
using :
df <- data.frame(v)
df %>% separate(v , into=c("url" , "text") , sep = " ")
but this returns :
url text
1 url www.site1.com
2 url www.site2.com
Do need to use an alternative regex in order to achieve required tibble format ?