I have this main dataframe:
testdataframe
id sensors_data
<chr> <list>
1 AA <data.frame [6 × 4]>
2 BB <data.frame [6 × 4]>
and every dataframe of sensors_data looks like this:
id type value status
<chr><chr> <dbl> <int>
1 SN01TP a 25.800 1
2 SN01HU b 40.000 1
3 SN02VD c 1.146 1
4 SN02C2 d 1270.000 1
5 SY01DS e 31.000 1
6 TD01TP f 22.500 1
I would want my main data frame to be, instead of only sensors_data, something like this:
a b c d e f
1 25.800 40.000 1.146 1270.000 31.000 22.500
I've tried unnesting the main data frame but that would create a record for each field. What I'm trying is to mutate the main data frame accessing the data inside sensors_data, but I can't figure out how.