| summ_by | R Documentation |
Summarise all continuous variables by group. Non-numeric variables will be dropped.
summ_by(
d,
cols,
...,
pct = c(0.25, 0.75),
geo = FALSE,
xname = "",
view = FALSE
)
d |
|
cols |
|
... |
|
pct |
|
geo |
|
xname |
|
view |
|
A data frame of summarised variables.
d = mtcars |> dplyr::mutate(vs=factor(vs), am=factor(am))
d |> summ_by()
d |> summ_by(geo=TRUE)
d |> summ_by(pct=c(0.1,0.9))
d |> summ_by(mpg)
d |> summ_by(mpg,vs)
d |> summ_by(mpg,vs,am)
d |> summ_by(c(mpg,disp))
d |> summ_by(c(mpg,disp),vs)
d |> summ_by(c(mpg,disp),vs,xname="mpg_")
# Grouping without column selection is possible but rarely useful in large dataset
d |> summ_by(,vs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.