euclidean_distance {metasnf}R Documentation

Distance metric: Euclidean distance

Description

Distance metric: Euclidean distance

Usage

euclidean_distance(df, weights_row)

Arguments

df

Dataframe containing at least 1 data column

weights_row

Single-row dataframe where the column names contain the column names in df and the row contains the corresponding weights_row.

Value

distance_matrix A distance matrix.


[Package metasnf version 1.1.2 Index]