psyteachr_dsrr Ch. 08

select()

{dplyr}

keep specified columns

pull()

{dplyr}

extract a single column

return()

{base}

return value

round()

{base}

round values to specified number of digits

sapply()

{base}

apply a function to multiple elements of an object and return a vector, matrix, or array

n()

{dplyr}

return current group size

map_dbl()

{purrr}

apply a function to multiple elements of an object in purrr, return a double vector

is.numeric()

{base}

determine if input is of type numeric

tidy()

{generics}

turn object into tidy tibble

stop()

{base}

stop execution of current expression and return an error

seq()

{base}

create sequences of numbers

paste()

{base}

concatenate character vectors with space between elements

mutate()

{dplyr}

create or modify data columns

rep()

{base}

create repetitions of numbers, characters, etc.

mean()

{base}

calculate mean of elements of vector

rnorm()

{stats}

generate random sample from normal distribution

library()

{base}

load R packages

c()

{base}

create vector of numbers, characters, etc.

lapply()

{base}

apply a function to multiple elements of an object and return a list

map()

{purrr}

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

str()

{utils}

return object structure

t.test()

{stats}

computer one and two sample Student’s t-test on vectors of data

tibble()

{tibble}

create tibble

The end!