psyteachr_ads Ch. 07

str()

{utils}

return object structure

write_csv()

{readr}

write data frame to comma delimited file

as.numeric()

{base}

coerce object to numeric

map_df()

{purrr}

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

inner_join()

{dplyr}

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

intersect()

{base}

return only observations in both x and y

full_join()

{dplyr}

join two data sets keeping the observations in both

bind_cols()

{dplyr}

bind columns in dplyr

read_csv()

{readr}

read comma delimited files

right_join()

{dplyr}

join two data sets keeping the observations in the right one

select()

{dplyr}

keep specified columns

str_replace_all()

{stringr}

replace all matched patterns in a string

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

as.character()

{base}

coerce object to character

semi_join()

{dplyr}

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

union()

{base}

return unique observations in x or y

tibble()

{tibble}

create tibble

bind_rows()

{dplyr}

bind rows in dplyr

library()

{base}

load R packages

left_join()

{dplyr}

join two data sets keeping the observations in the left one

mutate()

{dplyr}

create or modify data columns

setdiff()

{base}

return observations in x but not y

The end!