genSimDiff: Generate either correlation, l1 or l2 distance, from...

Description Usage Arguments Value

View source: R/anyData.R

Description

Generate either correlation, l1 or l2 distance, from feature(s)

Usage

1
genSimDiff(datasetName, featureCols, allPairwise, pairColNums, measure)

Arguments

datasetName

name of data containing individual information

featureCols

column(s) containing features that correlation, l1 or l2 distance are to be computed for

allPairwise

name of data frame containing all pairwise comparisons. This needs to have at least two columns, one representing the first item in the comparison, and one representing the second item.

pairColNums

vector of length 2 indicating the column numbers of 1. item 1 in comparison, 2. item 2 in comparison

measure

either "correlation", "l2dist" or "l1dist"

Value

allPairwise with an additional column, either "correlation", "l2dist" or "l1dist"


xhtai/clusterTruster documentation built on May 22, 2020, 10:56 a.m.