tsmatrix | R Documentation |
Converts a longitudinal data.frame
comprising trajectories with an equal number of observations,
measured at identical moments in time, to a matrix
. Each row of the matrix represents a trajectory.
tsmatrix(
data,
response,
id = getOption("latrend.id"),
time = getOption("latrend.time"),
fill = NA
)
dcastRepeatedMeasures(
data,
response,
id = getOption("latrend.id"),
time = getOption("latrend.time"),
fill = NA
)
data |
The |
response |
The response column name. |
id |
The id column name. |
time |
The time column name. |
fill |
A |
A matrix
with a trajectory per row.
The dcastRepeatedMeasures()
function is deprecated and will be removed in a future version.
Please use tsmatrix()
instead.
tsframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.