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 Jan. 14, 2023, 1:16 a.m.