reshape.long {agce}R Documentation

Reshape the data set in a longitudinal data set in order to use the lme function.

Usage

reshape.long(data, time)

Arguments

data The data matrix or data frame, where the first column correspond to the group ids, the second to the animal ids, the remaining columns are the measurements at each time.
time A vector of numeric values corresponding to the time points at which the measurements were effectued.

Value

The reshaped data.

Author(s)

Raphael Gottardo

Examples

data(Bt20)
long.data<-reshape.long(Bt20,c(0,3,7,10,14,16))

[Package agce version 1.2 Index]