psyteachr_ads Ch. 08

as.character()

{base}

coerce object to character

as.integer()

{base}

coerce to integer

list()

{base}

create recursive vector (list)

c()

{base}

create vector of numbers, characters, etc.

mutate()

{dplyr}

create or modify data columns

year()

{lubridate}

return or set year component of a date-time

str_replace_all()

{stringr}

replace all matched patterns in a string

geom_histogram()

{ggplot2}

create histogram of counts as bars

sum()

{base}

sum elements of vector

pivot_longer()

{tidyr}

pivot data frame to be longer

select()

{dplyr}

keep specified columns

library()

{base}

load R packages

group_by()

{dplyr}

group data by levels of column

ggplot()

{ggplot2}

create a plotting area

type_convert()

{readr}

re-convert character columns in existing data frame

pivot_wider()

{tidyr}

pivot data frame to be wider

separate()

{tidyr}

split single column into multiple columns

aes()

{ggplot2}

create aesthetic mappings between data and plot

read_csv()

{readr}

read comma delimited files

The end!