tsframe {latrend} | R Documentation |
Convert a multiple time series matrix to a data.frame
Description
Convert a multiple time series matrix to a data.frame
Usage
tsframe(
data,
response,
id = getOption("latrend.id"),
time = getOption("latrend.time"),
ids = rownames(data),
times = colnames(data),
as.data.table = FALSE
)
meltRepeatedMeasures(
data,
response,
id = getOption("latrend.id"),
time = getOption("latrend.time"),
ids = rownames(data),
times = colnames(data),
as.data.table = FALSE
)
Arguments
data |
The |
response |
The response column name. |
id |
The id column name. |
time |
The time column name. |
ids |
A |
times |
A |
as.data.table |
Whether to return the result as a |
Value
A data.table
or data.frame
containing the repeated measures.
Note
The meltRepeatedMeasures()
function is deprecated and will be removed in a future version,
please use tsframe()
instead.
See Also
[Package latrend version 1.6.1 Index]