Finds medoid of data
medoid(data, maxn = 4000)
A dataframe
For datasets with more than maxn rows, use maxn randomly selected rows.
A dataframe with one row, which is the medoid of the data, based on (standardised) daisy dist
medoid(mtcars)
#> mpg cyl disp hp drat wt qsec vs am gear carb
#> Merc 450SL 17.3 8 275.8 180 3.07 3.73 17.6 0 0 3 3