So I am using tidyr in R and I am trying to separate the data in the 'pub_author' column (attached below) into 3 individual columns: 'website_title', 'year', and 'author'. I tried using the separate() function doing separate('pub_author',c('website_title','year', 'author'),'-'), but since R reads each '-' individually it only returns the first three words. Does anyone know how to group the words for title and author so that they will appear in the appropriate column or any other method?
