I have a list of lists, each of them with format like the following:
list( name = 'foo',
type = 'bar',
attributes= list(
list(name='color', value='blue' ),
list(name='batch', value=123),
list(name='is_available', value='true') )
)
i.e. with pairs of names and values of attributes. How I can transform this into this format
list( name = 'foo',
type = 'bar',
attributes= list(
color='blue' ,
batch=123,
is_available=TRUE )
)
Preferably in a tidyverse
way.