untable-1x: Untable a dataset

untableR Documentation

Untable a dataset

Description

Inverse of table

Usage

untable(df, num)

Arguments

df

matrix or data.frame to untable

num

vector of counts (of same length as df)

Details

Given a tabulated dataset (or matrix) this will untabulate it by repeating each row by the number of times it was repeated

Author(s)

Hadley Wickham <h.wickham@gmail.com>


reshape documentation built on June 19, 2025, 5:08 p.m.

Related to untable-1x in reshape...