| reshapeTranspose | R Documentation |
Transpose data via transpose.
All predictors, responses, groups, and auxiliaries are transpose.
reshapeTranspose( dataset = cs.in.dataset(), groups = cs.in.groupvars(), scriptvars = cs.in.scriptvars(), return.results = FALSE, ... )
dataset |
[ |
groups |
[ |
scriptvars |
[ |
return.results |
[ |
... |
[ANY] |
One script variables is summarized in scriptvars list:
[character(1)]
Split character to split response names into multiple columns. Default is “_”.
Logical [TRUE] invisibly and outputs to Cornerstone or,
if return.results = TRUE, list of
resulting data.frame object:
reshapeTranspose |
Dataset with transposed data. |
# Data to transform: library(data.table) dtTest = data.table(i_1 = c(1:4, NA, 5), i_2 = c(51, 61, NA , 71, 81, 91)) # Reshape to long format: reshapeTranspose(dtTest, groups = character(0), list(convert.numeric = TRUE), return.results = TRUE)