edw_transect_weighting: Transect Weighting

View source: R/transect-weighting.R

edw_transect_weightingR Documentation

Transect Weighting

Description

Transect Weighting

Usage

edw_transect_weighting(rkm, data, riverkm = "RiverKm", spawning = "Spawning")

Arguments

rkm

A double vector of the transect river kms

data

A data frame with columns indicating the river km and proportion of spawning.

riverkm

A string of the name of the column in data with the river km.

spawning

A string of the name of the column in data with the spawning proportions.

Value

A double vector of the transect weightings.

Examples

edw_transect_weighting(c(1,2), data = data.frame(
  RiverKm = c(0.5,1.9,3),
  Spawning = c(0.1,0.8,0.1)
))

poissonconsulting/eggdewater documentation built on March 8, 2024, 9:36 a.m.