Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learn R programming
·
Module 4
Data Reshaping and Functional Programming
1
Reshaping Data with `pivot_longer()`
Reshape data from wide to long format using `tidyr::pivot_longer()`.
2
Pivoting Data from Long to Wide with `pivot_wider()`
Reshape data from long to wide format using `tidyr::pivot_wider()`.
3
Custom Functions: Arguments and Return Values
Write custom functions with arguments and return values.
4
Using `purrr::map()` for Element-wise Operations
Apply a function to each element of a list or vector using `purrr::map()`.
5
Transforming Data with `mutate` and `map`
Apply a function to columns of a data frame by combining `dplyr::mutate` and `purrr::map()`.
6
Conditional Logic with `if`/`else` in Functions
Implement conditional logic in functions using `if`/`else` statements.
Previous module
Data Transformation with the Tidyverse
Next module
Publication-Quality Data Visualization