Clds (or ClusterLongDataShape) is a class used to prepared the
trajectories that will be cluster by the function
kmlShape and to store the result of the clustering.
According to the data simplification that the
user may perform, it may containt the trajectories in wide format, in
long format, the simplified trajectories (called 'senators'), the
partition found and the mean's trajectories of the cluster find by
Objects can be created by calls of the form
new("Clds", ...) or
using the constructor
[vector(logical)] summarizes what data
are available and the transformation
that the data had already undergone. The first value is TRUE if
the data has been generated from a data.frame in a wide
format. The second is TRUE if the data are available in wide
format. The third is TRUE if the data in long format are available. The fourth is
reduceNbId has been used. The fitfh is TRUE if
reduceNbTimes has been used. The
sixth is TRUE if
kmlShape has been used.
[vector(factor)] Unique identifier, one for each trajectories.
[integer] Number of trajectories.
[integer] Number of times measurement (if the
trajectories are in wide format).
[matrix] Trajectories in wide
format. Each line is an individual, each column is a specific
[vector(numeric)] Times at which measures
[data.frame] Trajectories in long
format. The first column hold the identifiers ; in the second are
the times ; the third coutain the values.
[data.frame] The 'senatorsMeans' are the
trajectories get by reducing the number
of individual (using
The 'senatorShort' are the population after reduction of the
number of time (using
'senatorsMeansShort' are the trajectories get by using both. The
field 'senators' hold either the 'senatorMeans', the
'senatorShort' or the 'senatorMeansShort', according to the
reduction that has been used.
[data.frame] In the fisrt
column are all the individual indentifier. The second hold the
identifier of the senators that represent the individual
[integer] If the procedure
reduceNbId has been used, each senators is the
mean of a clusters. His
senatorsWeight is the number of individual
that are in his clusters. If
reduceNbId has not been
used (and thus, only
reduceNbTimes has been used),
each senators has weight 1.
[factor] Clusters of each
senators after the used of
[factor] Clusters of each
individual after the used of
kmlShape. The clusters
of an individual is the cluters of its senators.
[data.frame] Means' trajectories of
each clusters after the use of
: Get the value of the field asked. Possible values are 'step', 'wideAvailable', 'longAvailable', 'senatorsAvailable', 'reduceId', 'reduceTimes', 'kmlShape', 'nbClusters', 'id', 'nbId', 'nbCol', 'trajWide', 'times', 'trajLong', 'senators', 'mySenator', 'senatorsWeight', 'clustersSenators', 'clusters', 'trajMeans'
: Set the selected field to value.
: Display the object. Since many fields can be empty, it display only the field that ar not empty.
Loading required package: class Loading required package: longitudinalData Loading required package: clv Loading required package: cluster Loading required package: rgl Loading required package: misc3d Loading required package: kml Loading required package: lattice Attaching package: 'kmlShape' The following object is masked from 'package:longitudinalData': distFrechet Warning messages: 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display 2: 'rgl_init' failed, running with rgl.useNULL = TRUE 3: .onUnload failed in unloadNamespace() for 'rgl', details: call: fun(...) error: object 'rgl_quit' not found ~~~ Class: Clds ~~~ ~ steps : - Initial format of the data : Wide - Wide data available : TRUE - Long data available : FALSE - Senators available : FALSE - id reduction : FALSE - times reduction : FALSE - Use of kmlShape : FALSE ~ id :  I-1 I-2 I-3 I-4 I-5 I-6 I-7 I-8 I-9 I-10 ... ~ trajWide = [1374x15](limited to 5x10) MMS-1 MMS-2 MMS-3 MMS-4 MMS-5 MMS-6 MMS-7 MMS-8 MMS-9 MMS-10 more I-1 18 17 16 16 16 17 17 17 17 18 ... I-2 22 20 22 20 20 19 21 21 20 20 ... I-3 26 26 26 25 28 27 27 26 27 26 ... I-4 19 20 19 20 19 18 19 20 18 19 ... I-5 22 22 21 23 21 23 23 21 21 22 ... ... ... ~ times : 1 2 3 4 5 6 7 8 9 10 ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.