ds_group_summary: Groupwise descriptive statistics

Description Usage Arguments Value Deprecated function See Also Examples

View source: R/ds-group-summary.R

Description

Descriptive statistics of a continuous variable for the different levels of a categorical variable. boxplot.group_summary() creates boxplots of the continuous variable for the different levels of the categorical variable.

Usage

1
2
3
4
ds_group_summary(data, gvar, cvar)

## S3 method for class 'ds_group_summary'
plot(x, ...)

Arguments

data

A data.frame or a tibble.

gvar

Column in data.

cvar

Column in data.

x

An object of the class ds_group_summary.

...

Further arguments to be passed to or from methods.

Value

ds_group_summary() returns an object of class "ds_group_summary". An object of class "ds_group_summary" is a list containing the following components:

stats

A data frame containing descriptive statistics for the different levels of the factor variable.

tidy_stats

A tibble containing descriptive statistics for the different levels of the factor variable.

plotdata

Data for boxplot method.

Deprecated function

ds_group_summary() has been deprecated. Instead use ds_group_summary().

See Also

ds_summary_stats

Examples

1
2
3
4
5
6
7
8
9
# ds_group summary
ds_group_summary(mtcarz, cyl, mpg)

# boxplot
k <- ds_group_summary(mtcarz, cyl, mpg)
plot(k)

# tibble
k$tidy_stats

rsquaredacademy/descriptr documentation built on Oct. 7, 2018, 1:02 p.m.