Learn R Programming

iccTraj (version 1.0.4)

dist_mat: Creates a matrix with the pairwise distances

Description

Creates a matrix with the pairwise distances

Usage

dist_mat(dataD, nt)

Value

A list with two components:

  • *D*. A matrix with the pairwise distances

  • *data*. A data frame with the pairwise distances

Arguments

dataD

Data frame created with "genHD" function.

nt

Data frame with the number of trips by subject