ggstatsplot (version 0.0.6)

untable: Untable a dataset

Description

Given a tabulated dataset, this will untabulate it by repeating each row by the number of times it was repeated.

Usage

untable(data, counts)

Arguments

data

A data.frame to untable.

counts

A column containing counts.

See Also

Other helper_stats: check_outlier, grouped_proptest, signif_column

Examples

Run this code
# NOT RUN {
# have a look at the Titanic_full dataset first
Titanic_full <- untable(data = as.data.frame(Titanic), counts = Freq)
dplyr::glimpse(Titanic_full)
# }

Run the code above in your browser using DataLab