detabulate: Detabulate

Description Usage Arguments Examples

View source: R/detabulate.R

Description

Takes a data.frame which consists of tabulated values

Takes a data.frame and expands it's value by a specific. If the column name is passed to 'count' the column will be removed from the output.

Usage

1
2
3
detabulate(x, names = NULL, count = NULL)

expand_tab(x, count)

Arguments

x

A data.frame to duplicate rows

names

An optional character vector to specify the names

count

Either a vector of counts the same length as the original data.frame, a single value to apply to all columns, or the character name of the column that contains the count.

Examples

1
2
3
4
5

jmbarbone/qpm documentation built on July 25, 2020, 10:41 p.m.