get_distance: Calculates euclidean distance

Description Usage Arguments Value Examples

Description

This function will return the euclidean distance between an individual and others .

Usage

1
get_distance(tab, infos, ind, k)

Arguments

tab

A data.table object containing the clustering data.

infos

A data.table object containing the clusters and results at the exam.

ind

A character indicating the userid number of the individual you want to compare to others.

k

A numeric indicating how much nearest neighbours you want to keep.

Value

A dataset with the k-nearest neighbours.

Examples

1

guillaumelf/BarchenPackage documentation built on May 31, 2019, 11:50 p.m.