To unnest a list in R, you can use the unnest()
function from the tidyr
package or you can use the purrr
package with the map()
function.
Here is an example of how to use unnest()
function:
main.r162 chars11 lines
Output:
main.r130 chars10 lines
Alternatively, you can use purrr
with the map()
function to achieve the same result:
main.r187 chars11 lines
Output:
main.r56 chars8 lines
gistlibby LogSnag