Skip to content

Instantly share code, notes, and snippets.

@ymattu
Created November 18, 2018 14:44
Show Gist options
  • Save ymattu/5fd39d45e5a1bf37ca420776bf97929f to your computer and use it in GitHub Desktop.
Save ymattu/5fd39d45e5a1bf37ca420776bf97929f to your computer and use it in GitHub Desktop.
apply multiple functions to one object
inverse_map <- function(x, ...){
mthd <- list(...)
lapply(mthd, function(m) do.call(m,list(x)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment