hi R's
Please someone help me in this situation,
your_list <- list(
PERSON1 = list(
group = "A,B,C",
name = "PersonName1",
age = 25
),
PERSON2 = list(
group = "X,Y,Z",
name = "PersonName2",
age = 28
)
)
i would like to unwind the rows based on the column Group
the expected Result is as below
ID | name | group | age
PERSON1 | PersonName1 | A | 25
PERSON1 | PersonName1 | B | 25
PERSON1 | PersonName1 | C | 25
PERSON2 | PersonName2 | X | 28
PERSON2 | PersonName2 | Y | 28
PERSON2 | PersonName2 | Z | 28
Thanks in Advance