mapHelper | R Documentation |
I always forget to set_names, to run safely, etc... so this is just to help save time. Assumes the tidyverse is loaded
mapHelper(objectName, functionName = "throwawayFunction1", parallel = FALSE)
objectName |
what is the name of the list IN QUOTES that you're going to be mapping? Eg "iris" not iris |
functionName |
Optional, what is the name of the function you will be mapping? Default: throwawayFunction1 |
parallel |
if your list contains many entries, set this to TRUE in order to use multiple cores. If setting to TRUE gives an error, install the package furrr |
returns nothing, but will output some text to the console suitable to be copied into your script
## Not run: if(interactive()){ example <- list(a = 1, b = 2) mapHelper("example") } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.