psyteachr_dsrr Ch. 06

select()

{dplyr}

keep specified columns

str_replace_all()

{stringr}

replace all matched patterns in a string

pivot_longer()

{tidyr}

pivot data frame to be longer

as.character()

{base}

coerce object to character

separate()

{tidyr}

split single column into multiple columns

geom_histogram()

{ggplot2}

create histogram of counts as bars

group_by()

{dplyr}

group data by levels of column

year()

{lubridate}

return or set year component of a date-time

list()

{base}

create recursive vector (list)

c()

{base}

create vector of numbers, characters, etc.

aes()

{ggplot2}

create aesthetic mappings between data and plot

library()

{base}

load R packages

pivot_wider()

{tidyr}

pivot data frame to be wider

read_csv()

{readr}

read comma delimited files

mutate()

{dplyr}

create or modify data columns

sum()

{base}

sum elements of vector

type_convert()

{readr}

re-convert character columns in existing data frame

ggplot()

{ggplot2}

create a plotting area

as.integer()

{base}

coerce to integer

The end!