nestedList <-
list(
id = "x",
value = "value for x",
children = list(
list(
id = "y",
value = "value for y"
),
list(
id = "z",
value = "value for z"
)
)
);
str(nestedList);
get_vectors_from_nested_list(
nestedList,
c("id", "value")
);
Run the code above in your browser using DataLab