psyteachr_dsrr Ch. 05

write_csv()

{readr}

write data frame to comma delimited file

c()

{base}

create vector of numbers, characters, etc.

anti_join()

{dplyr}

join two data sets dropping all observations in x that have a match in y

str()

{utils}

return object structure

map_df()

{purrr}

apply a function to multiple elements of an object in purrr, return a data frame

as.numeric()

{base}

coerce object to numeric

select()

{dplyr}

keep specified columns

read_csv()

{readr}

read comma delimited files

union()

{base}

return unique observations in x or y

setdiff()

{base}

return observations in x but not y

library()

{base}

load R packages

bind_cols()

{dplyr}

bind columns in dplyr

full_join()

{dplyr}

join two data sets keeping the observations in both

as.character()

{base}

coerce object to character

bind_rows()

{dplyr}

bind rows in dplyr

tibble()

{tibble}

create tibble

inner_join()

{dplyr}

join two data sets keeping the observations that they have in common

right_join()

{dplyr}

join two data sets keeping the observations in the right one

intersect()

{base}

return only observations in both x and y

semi_join()

{dplyr}

join two data sets keeping all observations in x that have a match in y

str_replace_all()

{stringr}

replace all matched patterns in a string

left_join()

{dplyr}

join two data sets keeping the observations in the left one

mutate()

{dplyr}

create or modify data columns

The end!