calculate_knot_areas: Calculate areas and covariates for a given triangulated mesh

View source: R/calculate_knot_areas.R

calculate_knot_areasR Documentation

Calculate areas and covariates for a given triangulated mesh

Description

calculate_knot_areas builds outputs for a given triangulated mesh used for approximating spatial variation

Usage

calculate_knot_areas(loc_x, Data_Extrap, Covariates = "none", a_el = NULL)

Arguments

loc_x

location (eastings and northings in kilometers, UTM) for each sample or knot

Data_Extrap

the output from e.g., Extrapolation_List <- Prepare_WCGBTS_Extrapolation_Data_Fn() using slot Extrapolation_List$Data_Extrap

Covariates

character vector giving names of columns from Data_Extrap that should be used as covariates (default="none", which results in a design matrix with one columns of 1s)

a_el

a matrix with nrow(Data_Extrap) rows and l columns, giving the area within the l-th stratum for the e-th row of Data_Extrap

Value

Tagged list containing distance metrics

a_xl

A data frame with areas for each knot and each strattum


James-Thorson/FishStatsUtils documentation built on Feb. 6, 2024, 4:26 a.m.