array3Dlandm: Helper function for the 3D landmarks

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/array3Dlandm.R

Description

This is a helper function for obtaining the array with the 3D landmarks of the sample objects

Usage

1
array3Dlandm(numLandm,numIndiv,matLandm)

Arguments

numLandm

Number of landmarks that represent the 3D body of the individuals.

numIndiv

Number of individuals to analyze.

matLandm

Matrix with the numLandm landmarks for the numIndiv individuals.

Value

Array with the 3D landmarks of the sample objects.

Author(s)

Guillermo Vinue

References

Vinue, G., Simo, A., and Alemany, S., (2016). The k-means algorithm for 3D shapes with an application to apparel design, Advances in Data Analysis and Classification 10(1), 103–132.

See Also

LloydShapes, HartiganShapes, trimmedLloydShapes

Examples

1
2
3
4
5
6
landmarksNoNa <- na.exclude(landmarksSampleSpaSurv)
numLandmarks <- (dim(landmarksNoNa)[2]) / 3
landmarksNoNa_First50 <- landmarksNoNa[1:50, ]
numIndiv <- dim(landmarksNoNa_First50)[1]

array3D <- array3Dlandm(numLandmarks, numIndiv, landmarksNoNa_First50)

Example output

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 

Anthropometry documentation built on Dec. 11, 2021, 9:08 a.m.