Practical R/data-wrangling Tips and Tricks: custom functions, regex, and iteration. Learn techniques for common needs such as data-scraping, ingesting multiple files, transforming messy data into tidy data, quickly cleaning column names, separating multivalue fields, uniting variable values, and nesting data.
- File handling: ingesting multiple CSV files ; multivalue fields
- Regular expressions and pattern matching: working with strings
if_else()
andcase_when()
- Custom functions: leverage R as a functional coding language
- Nesting data-frames: preparing to iterate over list columns
- Data wrangling case study with Excel; how to use
fill()
(“fill down”) andpivot_longer()
- Harvesting data from the web
See Also