turnover: turnover Estimate turnover of vessels from catch by vessel by...

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

Estimate turnover of vessels from catch by vessel by year data; To specify the minimum number of years that a vessel needs stay in the fishery, then give a value to the variable minyrs.

Usage

1
turnover(x, minyrs = 1)

Arguments

x

A matrix of a continuous numeric property by year, the original usage was to plot catch-by-vessel against year

minyrs

limits the analysis to those vessels that remain in the fishery for at least minyrs years - which would eliminate the occasional opportunistic fisher who only fishes for one or two years, or whatever minimum is selected. Vessels with zero catches are not included in case zeros and NAs are counted as starting and leaving the fishery.

Value

a matrix of years by Continue, Leave, Start, Total

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(r4cpue)
data(sps)
cbv <- tapply(sps$catch_kg,list(sps$Vessel,sps$Year),sum,na.rm=TRUE)/1000
dim(cbv)
early <- rowSums(cbv[,1:6],na.rm=TRUE)
late <- rowSums(cbv[,7:14],na.rm=TRUE)
cbv1 <- cbv[order(late,-early),]
plotprep(width=7,height=6)
yearBubble(cbv1,ylabel="Catch by Trawl",vline=2006.5,diam=0.2)
turnover(cbv)

## End(Not run)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.