these functions were obtained from https://rdrr.io/rforge/yasomi/ with some major modifications
Source:R/som.R
somInitPca.default.Rd
these functions were obtained from https://rdrr.io/rforge/yasomi/ with some major modifications
Arguments
- data
The data to which the SOM will be fitted, a matrix or data frame of observations (which should be scaled)
- somGrid
A
somgrid
object- weights
Optional weights for the data points
- with.princomp
Switch specifying whether the princomp should be used instead of the prcomp for computing the principal components when no weights are given (see details)
- ...
not used