R4DS-2e Ch. 05

aes()

{ggplot2}

create aesthetic mappings between data and plot

n()

{dplyr}

return current group size

select()

{dplyr}

keep specified columns

geom_point()

{ggplot2}

add layer of points to plot

group_by()

{dplyr}

group data by levels of column

pivot_wider()

{tidyr}

pivot data frame to be wider

distinct()

{dplyr}

select only unique/distinct rows from data frame

pivot_longer()

{tidyr}

pivot data frame to be longer

parse_number()

{readr}

parse a character vector to numbers

filter()

{dplyr}

keep rows based on values of columns

starts_with()

{tidyselect}

match column names that begin with string

pull()

{dplyr}

extract a single column

c()

{base}

create vector of numbers, characters, etc.

rank()

{base}

return sample ranks of the values in a vector

scale_x_continuous()

{ggplot2}

scale x axis to be continuous

sum()

{base}

sum elements of vector

summarize()

{dplyr}

summarize data usually by grouping variable

ggplot()

{ggplot2}

create a plotting area

tribble()

{tibble}

create row-wise tibble

library()

{base}

load R packages

mutate()

{dplyr}

create or modify data columns

year()

{lubridate}

return or set year component of a date-time

geom_line()

{ggplot2}

add layer of data lines to plot

The end!