Description Usage Arguments Value Examples
generate summary for a given attribute grouped by a target attribute
1 2 3 4 5 6 | attribute_summary(
data,
summary_attr = NULL,
group_attr = NULL,
.checkAssertions = TRUE
)
|
data |
a data frame or tibble type object |
summary_attr |
a column label as a string to summarize |
group_attr |
a column label to group by before summarizing (optional) |
.checkAssertions |
private variable used to check function assertions (if first in chain) |
a list containing a summary table for all attributes or the specified summary_attr (if present), grouped by the group_attr (if present)
1 2 3 4 5 6 7 8 9 10 11 | # summarise all columns
attribute_summary(iris)
# summarise only 'Petal.Length'
attribute_summary(iris, summary_attr='Petal.Length')
# summarise 'Petal.Length' grouped by 'Species'
attribute_summary(iris, summary_attr='Petal.Length', group_attr='Species')
# summarise all columns grouped by 'Species'
attribute_summary(iris, group_attr='Species')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.