Get access to all lessons in this course.
- Welcome to Reproducibility for the Rest of Us
- Reproducibility for the Rest of Us Course Logistics
- Using Space Wisely
- Naming All the Things
- Using Function Arguments
- Prologs & Annotation
- Using Seed Values
- Writing Functions for Repeated Tasks
- Literate Programming with Quarto
- Embedding Files to Improve Reproducibility
- Managing Project Files for Reproducibility
Reproducibility for the Rest of Us
Writing Functions for Repeated Tasks
This lesson is locked
This lesson is called Writing Functions for Repeated Tasks, part of the Reproducibility for the Rest of Us course. This lesson is called Writing Functions for Repeated Tasks, part of the Reproducibility for the Rest of Us course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
In the unformatted-r-code.R
file, replace the recoding of the POLICY_
variables using a function to add labels and one of the mutate options shown here
Learn More
Creating Functions by Software Carpentry
Functions chapter from R for Data Science
You need to be signed-in to comment on this post. Login.