calcConnectivityMatrixDiffs: Calculate differences between connectivity matrices

View source: R/calcConnectivityMatrixDiffs.R

calcConnectivityMatrixDiffsR Documentation

Calculate differences between connectivity matrices

Description

Function to calculate differences between connectivity matrices.

Usage

calcConnectivityMatrixDiffs(
  tbl_conns,
  tbl_base,
  conns_col = "connFrac",
  base_col = "meanFrac"
)

Arguments

tbl_conns

- dataframe with connectivity values

tbl_base

- dataframe with base connectivity values

conns_col

- name of column in tbl_conns to difference

base_col

- name of column in tbl_base for differencing

Details

Connectivity values from the base matrix (iei., tbl_base) are subtracted from corresponding values in tbl_conns on the basis of matching values in the startZone and endZone columns in each dataframe.

Note that tbl_conns may encapsulate several connectivity matrices. The base matrix will be subtracted from each.

Value

A dataframe of connectivity matrices idential to tbl_conns, but with the requested difference values in an additional column, diff.


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.