I have some archived Slack data that I am trying to get some of key message properties. I\'d done this by stupidly flattening the entire list, getting a data.frame or tibble
As OP mentioned, this can solve the issue:
#Code
unlist(l)[grepl('.type',names(unlist(l)),fixed=T)]
Output:
folder_1.msg_1-1.type folder_1.msg_1-2.type folder_2.msg_2-1.type
"message" "message" "message"
Another options are (Many thanks and credit to @Abdessabour Mtk)
#Code1
purrr::map(l, ~ purrr::map(.x, "type"))