![]() Creating epicurves for multiple jurisdictions.The purrr package is the tidyverse approach to iterative operations - it works by “mapping” a function across many inputs (values, columns, datasets, etc.).Nevertheless, we introduce them here as a learning tool and reference for loops iterate code across a series of inputs, but are less common in R than in other programming languages.This page will introduce two approaches to iterative operations - using for loops and using the package purrr. Coding your iterative operations using the approaches below will help you perform such repetitive tasks faster, reduce the chance of error, and reduce code length. These are but a few of the many situations involving iteration. 46 Version control and collaboration with Git and GithubĮpidemiologists often are faced with repeating analyses on subgroups such as countries, districts, or age groups.33 Demographic pyramids and Likert-scales.19 Univariate and multivariable regression. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |