I have the following data frame in R and I am trying to split the tags by the vertical bar and and as a new row.
In theory I want to be able to see the different tags by videoid or other variables. I am able to split the tags, but not to link them to the video.
zz <- data.frame(x$video_id, FOO=x$tags)
but not sure how to continue...
The code below only allows me to separate the tags
tags <- as.character(x$tags)
tags <- strsplit(as.character(x$tags), "\\|")
df <- data.frame(matrix(unlist(tags)))
df <- table(df) #table of df
df <- as.data.frame(df)
The dataframe