-1

I have a data frame which is made of up:

Var1  Var2   Var3
a      b     nested list

Nested list =

 ####test:
           apple: a
           pear:   b
  ####test2:
             apple: a
             orange: c

Is there a simple way to turn the nested list in v3 of each row into further columns, with the list element names as the variable names and each list value in each cell? e.g.

Var1 Var2 Var3        apple pear orange
a    b    nested list   a   b    NULL
Mikey
  • 165
  • 1
  • 14

1 Answers1

0

maybe you are looking for tidyr::spread(). It is anyways hard to try other things without a reproducible example.

FMM
  • 1,857
  • 1
  • 15
  • 38