aggregate_mode: Aggregating to mode

Description Usage Arguments Value See Also

View source: R/util_aggregation.R

Description

Aggregating to mode

Usage

1
2
aggregate_mode(df, aggregate.by, when.tie = NA, ignore.missing = T,
  write.to.file)

Arguments

df

the data frame to aggregate

aggregate.by

the name of the column to aggregate by

when.tie

what value to return when there is a tie (defaults to NA)

ignore.missing

when TRUE, first removes NA, empty strings, -Inf, Inf (default TRUE)

Value

data frame of Modes for all variables in df, with one row per unique value in the column named in aggregate.by

See Also

function_name


mabafaba/reachR2 documentation built on May 3, 2019, 3:40 p.m.