Midterm 2 Codes

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:57 AM on 3/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Core Tidyverse Packages

readr, dplyr, ggplot2, tidyr, lubridate: The primary collection of packages for importing, transforming, and visualizing tidy data.

2
New cards

| > and %>%

|> (Native Pipe) or %>% (Magrittr Pipe): Used to chain commands by inserting the left-hand object as the first argument of the right-hand function.

3
New cards

Tibble

A modern data frame that features enhanced printing and stricter behavior.

4
New cards

filter()

Selects rows based on specific conditions.

5
New cards

select()

Extracts specific columns or variables.

6
New cards

contains()

A helper for select() to find columns matching specific text.

7
New cards

mutate()

Creates new columns that are functions of existing ones.

8
New cards

arrange()

Sorts rows, often paired with desc() for descending order.

9
New cards

group_by()

Groups data for pooled calculations.

10
New cards

summarize()

Aggregates many rows into a single summary value.

11
New cards

ggplot()

Initializes a plot using the Grammar of Graphics.

12
New cards

aes()

Maps data variables to visual properties like color, size, or shape.

13
New cards

geom_point()

Layer for creating scatterplots.

14
New cards

geom_line()

Layer for creating line plots.

15
New cards

geom_histogram()

Layer for creating histograms.

16
New cards

geom_density()

Layer for creating density plots.

17
New cards

facet_wrap()

Creates side-by-side graphs for easier categorical comparison.

18
New cards

scale_x_continuous()

Customizes axes, e.g., applying a log transformation.

19
New cards

data.frame()

Creates a standard data structure in Base R.

20
New cards

nrow()

Counts the number of rows in a dataset.

21
New cards

mean()

Calculates the average of a numeric vector.

22
New cards

lm()

Fits linear regression models using the syntax Response ~ Predictor.

23
New cards

cor()

Calculates correlation coefficients ($r$).

24
New cards

plot()

The standard base function for creating scatterplots.

25
New cards

logit()

Specialized transformation for percentages/proportions.

26
New cards

options(scipen = 999)

Disables scientific notation for p-values.

Explore top notes

note
Criminal Psychology
Updated 682d ago
0.0(0)
note
COM 100 Test: Chapters 1-8
Updated 542d ago
0.0(0)
note
6.5: The Great Depression
Updated 1253d ago
0.0(0)
note
CGO casus 2
Updated 437d ago
0.0(0)
note
Beck Anxiety Inventory
Updated 1163d ago
0.0(0)
note
Ch. 3; Energy
Updated 1029d ago
0.0(0)
note
Criminal Psychology
Updated 682d ago
0.0(0)
note
COM 100 Test: Chapters 1-8
Updated 542d ago
0.0(0)
note
6.5: The Great Depression
Updated 1253d ago
0.0(0)
note
CGO casus 2
Updated 437d ago
0.0(0)
note
Beck Anxiety Inventory
Updated 1163d ago
0.0(0)
note
Ch. 3; Energy
Updated 1029d ago
0.0(0)

Explore top flashcards

flashcards
Week 9
31
Updated 539d ago
0.0(0)
flashcards
Module 11
65
Updated 732d ago
0.0(0)
flashcards
troika “my family”
21
Updated 1219d ago
0.0(0)
flashcards
AP Spanish Literature - Autores
39
Updated 330d ago
0.0(0)
flashcards
Learn to Lead Chapter 1 Review
28
Updated 769d ago
0.0(0)
flashcards
Week 9
31
Updated 539d ago
0.0(0)
flashcards
Module 11
65
Updated 732d ago
0.0(0)
flashcards
troika “my family”
21
Updated 1219d ago
0.0(0)
flashcards
AP Spanish Literature - Autores
39
Updated 330d ago
0.0(0)
flashcards
Learn to Lead Chapter 1 Review
28
Updated 769d ago
0.0(0)