I have a table with two columns of interest:
Status_id | hashtag
947306525726527488 | NEWYEARSEVEPARTY919
947306316959281153 | MakeItALifestyle
947306315952611330 | c ("Ejuice", "vape", "vaping")
947306265520328704 | c ("vapefam", "vapenation", "vapefamily")
947305941522771968 | nowplaying
str(juice)
Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 5 obs. of 2 variables:
$ status_id: chr "947306525726527488" "947306316959281153"
"947306315952611330" "947306265520328704"
$ hashtags :List of 5
..$ : chr "NEWYEARSEVEPARTY919"
..$ : chr "MakeItALifestyle"
..$ : chr "Ejuice" "vape" "vaping" "eliquid"
..$ : chr "vapefam" "vapenation" "vapefamily"
..$ : chr "nowplaying"
Data
structure(list(status_id = c("947306525726527488", "947306316959281153",
"947306315952611330", "947306265520328704", "947305941522771968"
), hashtags = list("NEWYEARSEVEPARTY919", "MakeItALifestyle",
c("Ejuice", "vape", "vaping", "eliquid", "ecigjuice", "ecig",
"vapejuice"), c("vapefam", "vapenation", "vapefamily", "vapelife",
"vapelyfe", "vapeon", "positivity"), "nowplaying")), .Names = c("status_id",
"hashtags"), row.names = c(NA, -5L), class = c("tbl_df", "tbl",
"data.frame"))
Expected Result
I need the following two tables (of course, in the actual df original, there are more columns that I deleted, since they are not relevant to the question):
df1
Status_id
947306525726527488
947306316959281153
947306315952611330
947306265520328704
947305941522771968
df2
status_id |
947306525726527488 | NEWYEARSEVEPARTY919
947306316959281153 | MakeItALifestyle
947306315952611330 | Ejuice
947306315952611330 | Vape
947306315952611330 | vaping
947306265520328704 | vapefam
947306265520328704 | vapenation
947306265520328704 | vapefamily
947305941522771968 | nowplaying
status_id > 1 c (...) - : "list". df2 , .
google, , "list"