meltRepeatedMeasures: Convert a repeated measures data matrix to a data.frame

Description Usage Arguments Value

View source: R/matrix.R

Description

Convert a repeated measures data matrix to a data.frame

Usage

1
2
3
4
5
6
7
8
9
meltRepeatedMeasures(
  data,
  response,
  id = getOption("latrend.id"),
  time = getOption("latrend.time"),
  ids = rownames(data),
  times = colnames(data),
  as.data.table = FALSE
)

Arguments

data

The matrix containing a trajectory on each row.

response

The response column name.

id

The id column name.

time

The time column name.

ids

A vector specifying the id names. Should match the number of rows of data.

times

A numeric vector specifying the times of the measurements. Should match the number of columns of data.

as.data.table

Whether to return the result as a data.table, or a data.frame otherwise.

Value

A data.table or data.frame containing the repeated measures.


latrend documentation built on April 14, 2021, 5:08 p.m.