Description Usage Arguments Value Author(s) References Examples
Reshapes data with multiple measurements in a wide format into a long format with one column per measurement type.
1 | ReshapeLong(indt, stubs, sep = NULL)
|
indt |
The input |
stubs |
Character vector containing the uniquely identifying stub portion of the variable names. |
sep |
Not presently used. |
A data.table
.
Ananda Mahto
http://stackoverflow.com/q/10468969/1270695
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.