Learn R Programming

moderndive (version 0.8.0)

Tidyverse-Friendly Introductory Linear Regression

Description

Datasets and wrapper functions for tidyverse-friendly introductory linear regression, used in "Statistical Inference via Data Science: A ModernDive into R and the Tidyverse" available at .

Copy Link

Version

Install

install.packages('moderndive')

Monthly Downloads

1,205

Version

0.8.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Albert Y Kim

Last Published

August 4th, 2026

Functions in moderndive (0.8.0)

envoy_flights

Envoy Air flights data for 2023
geom_categorical_model

Regression model with one categorical explanatory/predictor variable
evals

Teaching evaluations at the UT Austin
DD_vs_SB

Dunkin Donuts vs Starbucks
ev_charging

Electric vehicle charging sessions for a workplace charging program
gg_parallel_slopes

Plot parallel slopes model
get_correlation

Get correlation value in a tidy way
old_faithful_2024

Old Faithful Eruptions Dataset (2024)
mythbusters_yawn

Data from Mythbusters' study on contagiousness of yawning
un_member_states_2024

UN Member States 2024 Dataset
movies_sample

Random sample of 68 action and romance movies
spotify_by_genre

Spotify by Genre Dataset
bowl_samples

Sampling from a bowl of balls
spotify_52_shuffled

Spotify 52-Track Sample Dataset with 'popular or not' shuffled
geom_parallel_slopes

Parallel slopes regression model
get_regression_summaries

Get regression summary values
get_regression_table

Get regression table
pennies_sample

A sample of 50 pennies
promotions_shuffled

One permutation/shuffle of promotions
pennies_resamples

Bootstrap resamples of a sample of 50 pennies
reexports

Objects exported from other packages
coffee_quality

Coffee Quality Dataset
get_regression_points

Get regression points
plot_3d_regression

Interactive 3D scatterplot with a fitted regression plane
saratoga_houses

House Prices and Properties in Saratoga, New York
ipf_lifts

International Power Lifting Results A subset of international powerlifting results.
mario_kart_auction

Data from Mario Kart Ebay auctions
mass_traffic_2020

2020 road traffic volume and crash level date for 13 Massachusetts counties
orig_pennies_sample

A random sample of 40 pennies sampled from the pennies data frame
pennies

A population of 800 pennies sampled in 2011
house_prices

House Sales in King County, USA
pop_sd

Calculate Population Standard Deviation
ma_traffic_2020_vs_2019

Massachusetts 2020 vs. 2019 Traffic Data Comparison
moderndive

moderndive - Tidyverse-Friendly Introductory Linear Regression
%>%

Pipe operator
spotify_52_original

Spotify 52-Track Sample Dataset
tactile_prop_red

Tactile sampling from a tub of balls
tidy_summary

This function calculates the five-number summary (minimum, first quartile, median, third quartile, maximum) for specified numeric columns in a data frame and returns the results in a long format. It also handles categorical, factor, and logical columns by counting the occurrences of each level or value, and includes the results in the summary. The type column indicates whether the data is numeric, character, factor, or logical.
promotions

Bank manager recommendations based on (binary) gender
amazon_books

Sample of Amazon books
View

View a data object inline when not in an interactive R session
alaska_flights

Alaska flights data
babies

Data on maternal smoking and infant health
almonds_sample_100

Chocolate-covered almonds data sample of size 100
almonds_bowl

Chocolate-covered almonds data
bowl

A sampling bowl of red and white balls
early_january_2023_weather

Early January hourly weather data for 2023
almonds_sample

Chocolate-covered almonds data sample of size 25
early_january_weather

Early January hourly weather data
MA_schools

Massachusetts Public High Schools Data
avocados

Avocado Prices by US Region
coffee_ratings

Data from the Coffee Quality Institute's review pages in January 2018
bowl_sample_1

Tactile sample of size 50 from a bowl of balls