ReshapeLong: Reshape Data into a Semi-Long Format

Description Usage Arguments Value Author(s) References Examples

View source: R/ReshapeLong.R

Description

Reshapes data with multiple measurements in a wide format into a long format with one column per measurement type.

Usage

1
ReshapeLong(indt, stubs, sep = NULL)

Arguments

indt

The input data.table.

stubs

Character vector containing the uniquely identifying stub portion of the variable names.

sep

Not presently used.

Value

A data.table.

Author(s)

Ananda Mahto

References

http://stackoverflow.com/q/10468969/1270695

Examples

1
2
3
4
5
6
## Not run: 
library(foreign)
dadmom <- read.dta("http://www.ats.ucla.edu/stat/stata/modules/dadmomw.dta")
ReshapeLong(dadmom, c("name", "inc"))

## End(Not run)

mrdwab/SOfun documentation built on June 20, 2020, 6:15 p.m.