R/nearestToArchetypes.R

Defines functions nearestToArchetypes

Documented in nearestToArchetypes

nearestToArchetypes <- function(indivs,numArch,mdras){
 as.numeric(which.min(mdras[indivs,]) - (numArch))
}

Try the Anthropometry package in your browser

Any scripts or data that you put into this service are public.

Anthropometry documentation built on Aug. 22, 2026, 1:10 a.m.