Learn R Programming

ggstatsplot (version 0.0.4)

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.

Examples

Run this code
# NOT RUN {
# untable(data = tibble::as_data_frame(datasets::Titanic), counts = n)

# }

Run the code above in your browser using DataLab