desc_stat: Create descriptive statistics table

View source: R/desc_stat.R

desc_statR Documentation

Create descriptive statistics table

Description

Create descriptive statistics table

Usage

desc_stat(
  data,
  .select,
  group_by_cols = NULL,
  with_idk = 99,
  .labels = c(total = "N")
)

Arguments

data

Choose dataframe.

.select

Choose which columns you want to calculate distribution.

group_by_cols

Group by chosen columns. Defaul: NULL

with_idk

Data includes I don't know values. You want to compute them in distributions but not in means. Default: 99.

.labels

Choose labels for table. Default: total = "N"

Examples

desc_stat(mtcars, .select = c(2, 8:11), group_by_cols = "cyl")

JouniVatanen/Jmisc documentation built on Feb. 3, 2023, 12:28 a.m.