psyteachr_ads Ch. 02

kable()

{knitr}

create knitr table

count()

{dplyr}

count unique values of variables

min()

{base}

compute minima of input values

as.Date()

{base}

convert to date

today()

{lubridate}

return the current date

max()

{base}

compute maxima of input values

filter()

{dplyr}

keep rows based on values of columns

tribble()

{tibble}

create row-wise tibble

ggplot()

{ggplot2}

create a plotting area

nrow()

{base}

return number of rows in matrix, data frame, etc.

Sys.Date()

{base}

return system date

c()

{base}

create vector of numbers, characters, etc.

geom_col()

{ggplot2}

create bar chart based on values in data

library()

{base}

load R packages

aes()

{ggplot2}

create aesthetic mappings between data and plot

labs()

{ggplot2}

modify axis, legend, and plot labels

read_csv()

{readr}

read comma delimited files

n()

{dplyr}

return current group size

The end!