get_summ_stat: Calculate the mean or standard deviation of a variable in a...

Description Usage Arguments Examples

View source: R/summary_stat_funs.R

Description

Calculate the mean or standard deviation of a variable in a tibble

Usage

1
get_summ_stat(data, summary_fun, summary_var, ..., num_digits = 2)

Arguments

data

A tibble (formatted data from exp 1, 2, or 3)

summary_fun

The summary function you want to apply

summary_var

The variable you want to summarise

...

Any criteria you want to filter by

num_digits

The number of significant digits you want to round the result of summary_fun() to. Default is 2

Examples

1
get_summ_stat(three_toy_tidy, mean, age, condition == "Broken Button", num_digits = 3)

skaltman/yvw documentation built on May 21, 2019, 9:39 a.m.