table_distribution: Distribution table

Description Usage Arguments Value Examples

View source: R/generic.R

Description

table_distribution computes the distribution table for a character, integer or discrete vector

Usage

1

Arguments

df

a tibble

variable

a scalar character

Value

a tibble that is distribution table

Examples

1
2
3
4
5
n <- 1000
df <- tibble(nome = sample(c('A', 'B', 'C'), size = n, replace = T,
                          prob = c(0.6, 0.2, 0.2)),
           numero = rnorm(n))
table_distribution(df, 'nome')

gilberto-sassi/power documentation built on July 17, 2020, 1:02 p.m.