Learn R Programming

reshape (version 0.8.9)

untable: 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