spread2-internals: Internal helpers

rbindlistDtDtpotR Documentation

Internal helpers

Description

Not for users. A function to setnames and rbindlist that is used in spread2.

Usage

rbindlistDtDtpot(
  dt,
  dtPotential,
  returnFrom,
  needDistance,
  dtPotentialColNames
)

reorderColsWDistance(needDistance, dtPotential, dtPotentialColNames)

angleQuality(from, to, landscape, actualAsymmetryAngle)

asymmetryAdjust(angleQualities, quantity, actualAsymmetry)

Arguments

dt

a data.table object

dtPotential

a data.table object

returnFrom

logical

needDistance

logical

dtPotentialColNames

character vector.

from

vector of cell locations which are the "from" or starting cells

to

vector of same length as from which are the "to" or receiving cells

landscape

RasterLayer passed from spread2.

actualAsymmetryAngle

Angle in degrees, either a vector length 1 or vector NROW(dtPotential).

angleQualities

Matrix. The output from angleQuality

quantity

Variable of interest to adjust, e.g., spreadProb

actualAsymmetry

Asymmetry intensity. Derived from asymmetry arg in spread2


PredictiveEcology/SpaDES.tools documentation built on April 18, 2024, 3:21 a.m.