Create one or more scalar variables summarising the variables of an existing data.frame
. Grouped data.frame
s will
result in one row in the output for each group.
summarise(.data, ...) summarize(.data, ...)
.data | A |
---|---|
... | Name-value pairs of summary functions. The name will be the name of the variable in the result. The value can be:
|
summarise()
and summarize()
are synonyms.
#> mean(mpg) #> 1 20.09062#> meanMpg sumMpg #> 1 20.09062 642.9#> mean(mpg) #> 1 20.09062