traj2adj: Generation of adjacency matrix from movement data

View source: R/fcts packages.R

traj2adjR Documentation

Generation of adjacency matrix from movement data

Description

Transform an ltraj object to an adjacency matrix using a user-specified grid size

Usage

traj2adj(mov, res = 100, grid = NULL)

Arguments

mov

Movement trajectory, need to be a ltraj object

res

Grid size (based on coordinate system of movement trajectory)

grid

User specified grid (a raster), needs to have a larger extent than the movement trajectory

Value

A list of objects containing the adjacency matrix, the grid use, and patch/corridor identification (only useful if sim_mov was used)

Examples

traj1<-sim_mov(type="OU", npatches=3, grph=T)
adj<-traj2adj(traj1, res=100)

BastilleRousseau/moveNT documentation built on Aug. 26, 2023, 5:54 a.m.