as.clusterizLongData {kml} | R Documentation |
as.cld.matrix
turn a matrix into an object of class ClusterizLongData
.
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,...)
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. |
|
[character] : single identifier
for each trajectory (ie each individual). By default,id is simply the line number. |
|
[numeric] : time at which measures
were made. By default,time is simply the number of
the column of the matrix. |
|
[character] :
Name of the variable being measured ("V" by default). |
|
[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 |
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.
An object of class ClusterizLongData
.
Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Responsable : <genolini@u-paris10.fr>
Raphaël Ricaud
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
as.cld
, as.cld.data.frame
,
as.cld.artificialLongData
, kml-package
### 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=""))