dat_summ | R Documentation |
Summarise a data matrix. This is a wrapper function for any summary function on an vector.
dat_summ(x, method = mean, ...)
x |
a matrix-like object. |
method |
summary method for an vector. |
... |
further parameters for |
a summarised table.
library(dplyr)
library(tidyr)
library(purrr)
iris %>% group_by(Species) %>% group_modify(~ dat_summ(., method = mean))
iris %>% group_by(Species) %>% group_modify(~ dat_summ(., method = vec_stats))
iris %>% group_by(Species) %>% do(dat_summ(., method = vec_segment))
iris %>% dat_summ(method = sd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.