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 April 12, 2022, 5:07 p.m.

Related to untable-1x in reshape...