group_and_summarize: Group and Summarize

Description Usage Arguments Value

View source: R/group_and_summarize.R

Description

Group and Summarize

Usage

1
2
group_and_summarize(df, groups = non_numeric_cols(df),
  summary_cols = numeric_cols(df), negate = FALSE, .f = sum_na)

Arguments

df

data.frame

groups

character

summary_cols

character vector of columns to summarize. This defaults to all numeric columns, but could be switched to other columns if the desire, for instance, is to concatenate all characters.

negate

logical

.f

function to be applied. Default is 'sum_na', or, sum(x, na.rm = TRUE).

Value

data.frame


cadenceinc/yolanda documentation built on Sept. 15, 2020, 5:20 a.m.