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 March 7, 2023, 6:58 p.m.