Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Created January 8, 2018 07:42
Show Gist options
  • Save ColinFay/2eaf54ef6bf05880876b7ec0a1fce9df to your computer and use it in GitHub Desktop.
Save ColinFay/2eaf54ef6bf05880876b7ec0a1fce9df to your computer and use it in GitHub Desktop.
library(purrr)
l <- list(list(1:10, 1:20), list(20:30, 40:50))
modify_depth(l, 2, ~ append(.x, sum(.x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment