Description Usage Arguments Value Note Author(s) See Also Examples
A function to conveniently stack groups of wide columns into a long form
which can then be merge
d together.
1 2 |
data |
The source |
id.vars |
The variables that serve as unique identifiers. Defaults to |
var.stubs |
The prefixes of the variable groups. |
sep |
The character that separates the "variable name" from the "times"
in the wide |
keep.all |
Logical. Should all the variables from the source
|
keyed |
Logical. Should the |
keep.rownames |
Logical. Should rownames be kept when converting the input to a |
... |
Other arguments to be passed on when |
A list
of data.table
s with one data.table
for
each "var.stub". The key
is set to the
id.vars
and .time_#
vars.
This is the function internally called by merged.stack
.
Ananda Mahto
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.