Skip to contents

Create the distance matrix

Usage

create_dist_matrix(
  dataset,
  spat = NULL,
  spatID = NULL,
  alt_var,
  occasion,
  occasion_var = NULL,
  dataZoneTrue,
  zone_cent = NULL,
  fish_cent = NULL,
  choice,
  units,
  port = NULL,
  zoneRow,
  zoneID,
  crs = NULL
)

Arguments

dataset

Primary data set

spat

Spatial table.

spatID

Column name for Zone/area ID.

alt_var

Alternative choice location

occasion

Define choice location

occasion_var

Identify variable(s) needed to define choice location.

dataZoneTrue

Include zone

zone_cent

Zonal centroid table.

fish_cent

Fishing centroid table.

choice

Choice zone

units

Distance units

port

Port table

zoneRow

Zone row

zoneID

Zone identifier

crs

Coordinate reference system.

Value

Distance matrix based on choices made in create_alternative_choice

Details

Function is called by make_model_design generate the distance matrix. Alternative fishing options come from the Alternative Choice list, generated from the create_alternative_choice function.