dismatrix: Distance Matrix - dismatrix()

View source: R/IndexFunctions.R

dismatrixR Documentation

Distance Matrix – dismatrix()

Description

Function that calculates the shortest distance between each of the pairs of digraph constructions.

Usage

dismatrix(imp, mode = "out")

Arguments

imp

Subject's ImpGrid. It must be an S4 object imported by the importimp function

mode

Method to calculate the distances depending on the direction of the edges.With "out" we calculate them respecting the direction of the edges, "in" through the inverse of the direction of the edges and "all" without taking into account the direction.

Value

Returns the digraph distance matrix. Matrix that contains the distances of the shortest paths from one construct to another.


GICUNED/GridFCM documentation built on Feb. 23, 2023, 9:03 a.m.