getaav | R Documentation |
getaav calculates the annual absolute change in catch for an input vector of catches, which could be across a series of years or even across different spatial units for a single year (an unusual use). The equation used is aav = 100 x sum(|Ct - Ct-1|)/(sum(Ct).
getaav(invect, narm = TRUE)
invect |
a vector of catches |
narm |
boolean, should NAs be removed? If not then getaav will return an NA. Default = TRUE |
a single scalar value the AAV of the input catches
catch <- c(1,2,3,4,5,4,3,2,1)
getaav(catch) # should equal 0.32
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.