Finds medoid of data

medoid(data, maxn = 4000)

Arguments

data

A dataframe

maxn

For datasets with more than maxn rows, use maxn randomly selected rows.

Value

A dataframe with one row, which is the medoid of the data, based on (standardised) daisy dist

Examples

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