calculate_aggregated_value: Calculate one of the aggregating statistic.

Description Usage Arguments Value Examples

View source: R/explore_functions.R

Description

For selected column calculate agg_fun.

Usage

1
calculate_aggregated_value(dataset, column, agg_fun, as_num = FALSE)

Arguments

dataset

survey dataset

column

column name used for calculating statistic

agg_fun

function used to calculate statistic - one of mean, min, max or median

as_num

if TRUE returns value as numeric otherwise returns data.frame object (default FALSE)

Value

value of calculated statistic

Examples

1
2
3

jjankowiak/exploreNHANES documentation built on June 9, 2018, 4:47 a.m.