R4DS-2e Ch. 13

median()

{stats}

compute sample median

count()

{dplyr}

count unique values of variables

row_number()

{dplyr}

rank vector elements with ties set to first

pmin()

{base}

compute parallel minima for one or more vectors

day()

{lubridate}

get days component of date-time

ggplot()

{ggplot2}

create a plotting area

year()

{lubridate}

return or set year component of a date-time

mutate()

{dplyr}

create or modify data columns

tribble()

{tibble}

create row-wise tibble

quantile()

{stats}

calculate sample quantiles

sum()

{base}

sum elements of vector

slice_head()

{dplyr}

select the first (specified) number of rows

aes()

{ggplot2}

create aesthetic mappings between data and plot

parse_number()

{readr}

parse a character vector to numbers

summarize()

{dplyr}

summarize data usually by grouping variable

geom_line()

{ggplot2}

add layer of data lines to plot

n_distinct()

{dplyr}

count unique combinations

group_by()

{dplyr}

group data by levels of column

cut()

{base}

divide range of vector into intervals

pmax()

{base}

compute parallel maxima for one or more vectors

min_rank()

{dplyr}

rank vector elements with ties set to minimum

geom_abline()

{ggplot2}

add vertical, horizontal, or diagonal reference lines

consecutive_id()

{dplyr}

generate a unique identifier for consecutive combinations

cumsum()

{base}

calculate the cumulative sums of a vector

geom_freqpoly()

{ggplot2}

create frequency polygon

library()

{base}

load R packages

ceiling()

{base}

round up to nearest integer

n()

{dplyr}

return current group size

filter()

{dplyr}

keep rows based on values of columns

tibble()

{tibble}

create tibble

parse_double()

{readr}

parse a character vector to doubles

dense_rank()

{dplyr}

rank vector elements with no gaps between ranks

c()

{base}

create vector of numbers, characters, etc.

desc()

{dplyr}

order in descending order

floor()

{base}

round down to nearest integer

lead()

{dplyr}

find the next values in a vector

arrange()

{dplyr}

change order of rows based on values of columns

lag()

{dplyr}

find the previous values in a vector

round()

{base}

round values to specified number of digits

is.na()

{base}

determine whether elements of vector are missing

cume_dist()

{dplyr}

cumulative distribution function giving proportion of all values less than or equal to the current rank

max()

{base}

compute maxima of input values

hour()

{lubridate}

return or set hour component of a date-time

min()

{base}

compute minima of input values

mean()

{base}

calculate mean of elements of vector

percent_rank()

{dplyr}

rescale rank between 0 and 1

IQR()

{stats}

computes interquartile range

month()

{lubridate}

return or set month component of a date-time

geom_point()

{ggplot2}

add layer of points to plot

The end!