summarize_se: summarize standard interface.

Description Usage Arguments Value See Also Examples

View source: R/summarize_se.R

Description

summarize a data frame by the summarizeTerms. Accepts arbitrary text as summarizeTerms to allow forms such as "mean(Sepal.Length)".

Usage

1
2
3
summarize_se(.data, summarizeTerms, ..., warn = TRUE, env = parent.frame())

summarise_se(.data, summarizeTerms, ..., warn = TRUE, env = parent.frame())

Arguments

.data

data.frame

summarizeTerms

character vector of column expressions to summarize by.

...

force later terms to be bound by name

warn

logical, if TRUE warn about possible name collisions.

env

environment to work in.

Value

.data with summarizeTerms summarization applied.

See Also

summarize, summarize_at, :=

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# good
datasets::iris %.>%
  summarize_se(., qae(Mean_Sepal_Length := mean(Sepal.Length),
                      Max_Sepal_Length := max(Sepal.Length)))

# good
datasets::iris %.>%
  summarize_se(., qae(Sepal.Length := mean(Sepal.Length)))

# intentionally generates a warning
datasets::iris %.>%
  summarize_se(., qae(Sepal.Length := mean(Sepal.Length),
                      Max_Sepal_Length := max(Sepal.Length)))

seplyr documentation built on Sept. 5, 2021, 5:12 p.m.