Learn R Programming

condvis2 (version 0.1.2)

medoid: Finds medoid of data

Description

Finds medoid of data

Usage

medoid(data, maxn = 4000)

Value

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

Arguments

data

A dataframe

maxn

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

Examples

Run this code
medoid(mtcars)

Run the code above in your browser using DataLab