MakeDistMatrix: Distance matrix from data.table

Description Usage Arguments Value

Description

Makes a named distance matrix from a data.table of (x, y, distance(x, y)).

Usage

1
MakeDistMatrix(dt, id.x, id.y, value.cn = "distance")

Arguments

dt

a data.table

id.x

String, name of identifier column x

id.y

String, name of identifier column y

value.cn

name of column with distances

Value

'dm' Named distance 'matrix'.


wkc1986/infograf documentation built on May 20, 2019, 11:37 a.m.