mapHelper: A helper function to remember all the steps I like when...

mapHelperR Documentation

A helper function to remember all the steps I like when mapping a throwaway function on somethin

Description

I always forget to set_names, to run safely, etc... so this is just to help save time. Assumes the tidyverse is loaded

Usage

mapHelper(objectName, functionName = "throwawayFunction1", parallel = FALSE)

Arguments

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

Value

returns nothing, but will output some text to the console suitable to be copied into your script

Examples

## Not run: 
if(interactive()){
 example <- list(a = 1, b = 2)
 mapHelper("example")
 }

## End(Not run)

DataStrategist/amitFuncs documentation built on June 4, 2022, 10:01 a.m.