I am trying to create a social graph that tags a product to the issues. I have tibble dataframe with character vectors that consist of a column with multiple product and a column with multiple issues. I would need to split the column to ensure one product is map to one issue. I am not too sure how can I do it.
Product | Issues |
---|---|
c("iphone", "screen") | spoil |
tablet | c("proof", "fail") |
The outcome of the table should be the table below:
Product | Issues |
---|---|
iphone | spoil |
screen | spoil |
tablet | proof |
tablet | fail |
example data dput:
structure(list(product_tags = list(c("jim", "choice"), c("misinformed",
"update", "iphone 13 show", "update one"), c("wallpaper", "ios15"
), c("hello", "io 16", "apple music"), c("default", "wallpaper"
), "issue", "machine", "escalate", "copy", c("update 16", "tomorow"
), "cloud", "macbook", c("notification", "lock screen"), c("unlock 8",
"ipad", "support", "ipad"), c("notification", "lock screen")),
issue_tags = list("third", "learn", "get back", c("stop playing",
"ios16", "help"), "bring", "category", "minor", "iphone macbook",
c("work", "detail"), "iphne", c("agree back", "google"
), c("laptop", "business", "fine"), "change", c("proof",
"fail"), "go back")), row.names = c(NA, -15L), class = c("tbl_df",
"tbl", "data.frame"))