Convert a multiple time series matrix to a data.frame
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
)
The matrix
containing a trajectory on each row.
The response column name.
The id column name.
The time column name.
A vector
specifying the id names. Should match the number of rows of data
.
A numeric
vector
specifying the times of the measurements.
Should match the number of columns of data
.
Whether to return the result as a data.table
, or a data.frame
otherwise.
A data.table
or data.frame
containing the repeated measures.
The meltRepeatedMeasures()
function is deprecated and will be removed in a future version,
please use tsframe()
instead.