as.clusterizLongData {kml}R Documentation

~ function: as.cld.matrix ~

Description

as.cld.matrix turn a matrix into an object of class ClusterizLongData.

Usage

as.cld(data, id=1:nrow(data), time=1:ncol(data), varName="V",trajSizeMin=2,...)
as.cld.matrix(data, id=1:nrow(data), time=1:ncol(data), varName="V", trajSizeMin=2,...)

Arguments

data [matrix(numeric)]: contains longitudinal data. Each line refers to the trajectory of an individual. Columns correspond to the time at which measures were made.
id [character] : single identifier for each trajectory (ie each individual). By default,id is simply the line number.
time [numeric]: time at which measures were made. By default,time is simply the number of the column of the matrix.
varName [character]: Name of the variable being measured ("V" by default).
trajSizeMin [numeric]: The trajectories with missing values can either be excluded or included. trajSizeMin sets the minimum number of values that a trajectory must contain not to be excluded. Please note that the trajectories which are totally missing (0 present values) must always be excluded.
... For compatibility only

Details

as.cld apply on a matrix turn the matrix into an object of class ClusterizLongData. Each line of the matrix refers to a trajectory an individual), each column to a time measure. By default, identifiers id correspond to line numbers, time to column numbers.

Value

An object of class ClusterizLongData.

Author(s)

Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris

Responsable : <genolini@u-paris10.fr>

English translation

Raphaël Ricaud
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre

See Also

as.cld, as.cld.data.frame, as.cld.artificialLongData, kml-package

Examples

### Simple use
ma1 <- matrix(rnorm(50),ncol=5)
as.cld(ma1)

### Changing parameters
as.cld(ma1,time=(1:5)*2,id=paste("U",101:110,sep=""))

[Package kml version 0.9.0 Index]