Back to Browse

How to Create Functions In R

7.3K views
Jul 21, 2020
28:07

In this week's #TidyTuesday video, I go over the basics of functional programming in R. I first show how to create your first "Hello World" function and then show the uses of Lambda/Helper functions using the #Tidyverse. I then go over the different ways to create functions and explain the benefits of functions. I also briefly cover #TidyEval and how to create functions that allow explicitly stating the column name to make charts. Lastly, I go over a use case of creating and applying a function that does not return an output by batch saving plots. Connect with me on LinkedIn: https://www.linkedin.com/in/andrew-couch/ Q&A Submission Form: https://forms.gle/6EzU4GCR9VnJx8gg7 Code for this video: https://github.com/andrew-couch/Tidy-Tuesday/blob/master/Season%201/Scripts/TidyTuesdayFunctions.Rmd TidyTuesday: https://github.com/rfordatascience/tidytuesday

Download

0 formats

No download links available.

How to Create Functions In R | NatokHD