View source: R/transect-weighting.R
edw_transect_weighting | R Documentation |
Transect Weighting
edw_transect_weighting(rkm, data, riverkm = "RiverKm", spawning = "Spawning")
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. |
A double vector of the transect weightings.
edw_transect_weighting(c(1,2), data = data.frame(
RiverKm = c(0.5,1.9,3),
Spawning = c(0.1,0.8,0.1)
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.