Hi all
Is there a way to convert/split the the contents wrapped in a column into individual values as shown in expected output
df
A B
da list(off= c("Ove","fdsdf"), rou = "Int", br = "MS", act = list(list(name = "Pen", dost = "Unk", dor = "1", do1r = "1", dor_unit = "Unknown")), usel = "fse", d = "Soon", code = "QJ009", mn = "MSK", mnr = "5010")
fsd list(rou = "Int1", br = "MS1", act = list(list(name = "Pe1n", dost = "U1nk", dor = "11", do1r = "11", dor_unit = "Un1known")), usel = "1fse", d = "1Soon", code = "Q1J009", mn = "MK")
Expected Output
A B-off B-rou B- br B-act-name B-act-dost B-act-dor B-act-do1r B-act-dor_unit B-usel B-d B-code B-mn B-mnr
da Ove Int MS Pen Unk 1 1 Unknown] fse Soon QJ009 MSK 5010
da fdsdf Int MS Pen Unk 1 1 Unknown] fse Soon QJ009 MSK 5010
fsd NA Int1 MS1 Pe1n U1nk 11 11 Un1Known 1fse 1Soon Q1J009 MK NA
Actually there are multiple columns similar to Column B. The sample here is just for illustration. Appreciate if anyone could help
Here class of
class(df$B)
is Character