PathTotalWeight: Calculates the total weight of the given path

View source: R/intensitynet.R

PathTotalWeightR Documentation

Calculates the total weight of the given path

Description

Calculates the total weight of the given path

Usage

PathTotalWeight(obj, path_nodes, weight = NA)

## S3 method for class 'intensitynet'
PathTotalWeight(obj, path_nodes, weight = NA)

Arguments

obj

intensitynet object

path_nodes

vector containing the node ID's of the path

weight

an string specifying the type of weight to be computed. If no weight type is provided, the function will calculate the total amount of edges. Default NA.

Value

total weight of the path

Examples


data("und_intnet_chicago")
PathTotalWeight(und_intnet_chicago, c('V115', 'V123', 'V125', 'V134'), weight = 'intensity')


intensitynet documentation built on April 11, 2023, 6:07 p.m.