ai.tutorials is a collection of tutorials for learning how to use AI to code in R. It makes extensive use of the tools in the tutorial.helpers package.
The package is not yet on CRAN.
You can install the development version from GitHub with:
pak::pak("PPBDS/ai.tutorials")The tutorials cover material from two books: R for Data Science (2e) by Hadley Wickham, Mine Çetinkaya-Rundel, and Garrett Grolemund and Analyzing US Census Data: Methods, Maps, and Models in R by Kyle Walker.
You run the tutorials like so:
learnr::run_tutorial(name = "r4ds-1",
package = "ai.tutorials")
r4ds stands for R for Data Science. There are five related tutorials
in the package: r4ds-1, r4ds-2, r4ds-3, r4ds-4, and r4ds-5.
Different tutorials cover different chapters from the book as follows.
Data import
Data visualization
Data transformations
Data tidying
Spreadsheets
Layers
Exploratory data analysis
Communication
Databases
Logical vectors
Numbers
Strings
Regular expressions
Arrow
Factors
Dates and times
Missing values
Joins
Hierarchical-data
Web scraping
Functions
Iterations
The organization of the tutorials is not the same as the organization of R4DS. Instead, each tutorial begins by sourcing data from a different sort of storage technology and then working with that data.
There is one tutorial which covers material from Analyzing US Census
Data: Methods, Maps, and Models in
R by Kyle Walker:
tidycensus-1. The name of the tutorial comes from the
tidycensus package, also
written by Walker, and the leading method for working with Census data
in R.