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 Dec. 11, 2021, 9:08 a.m.