R4DS-2e Ch. 12

any()

{base}

assess whether conditional is true for any elements of a vector

is.na()

{base}

determine whether elements of vector are missing

group_by()

{dplyr}

group data by levels of column

desc()

{dplyr}

order in descending order

if_else()

{dplyr}

vectorized if statement that checks conditionals and returns different outputs based on answer

sum()

{base}

sum elements of vector

mean()

{base}

calculate mean of elements of vector

abs()

{base}

calculate absolute value

print()

{base}

prints argument

summarize()

{dplyr}

summarize data usually by grouping variable

case_when()

{dplyr}

conditionally set values across multiple conditions

day()

{lubridate}

get days component of date-time

near()

{dplyr}

compare if two vectors of floating point numbers are equal (with a built-in tolerance)

library()

{base}

load R packages

c()

{base}

create vector of numbers, characters, etc.

year()

{lubridate}

return or set year component of a date-time

mutate()

{dplyr}

create or modify data columns

arrange()

{dplyr}

change order of rows based on values of columns

all()

{base}

assess whether conditional is true for all elements of a vector

tibble()

{tibble}

create tibble

n()

{dplyr}

return current group size

filter()

{dplyr}

keep rows based on values of columns

month()

{lubridate}

return or set month component of a date-time

now()

{lubridate}

return current date and time

The end!