fn_on_df: Runs a function on the values of a melted data frame. Used...

Description Usage Arguments

Description

Runs a function on the values of a melted data frame. Used for preforming median, mean, sd, and sum without a ton of ugly scripting.

Usage

1
fn_on_df(fetch_group, fn, ...)

Arguments

fetch_group.

The result of a fetch_var()

fn.

The name of the function.

e.g., the median age would be fn_on_df(fetch('age'), median)


peterhurford/surveytools documentation built on May 25, 2019, 1:51 a.m.