untable {reshape}R 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>


[Package reshape version 0.8.9 Index]