SyntaxFix
Write A Post
Hire A Developer
Questions
purrr::flatten_*() is also a good option. the flatten_* functions add thin sanity checks and ensure type safety.
purrr::flatten_*()
flatten_*
myList <- list('A'=1, 'B'=2, 'C'=3) purrr::flatten_dbl(myList) ## [1] 1 2 3