View source: R/DetermineCatchShares.R
determineCatchShares | R Documentation |
Function that checks if observation was made by a Catch Share vessel
determineCatchShares(
dat,
yearLevs = as.character(2011:max(dat$ryear)),
sectorLevs,
colnms = c("ryear", "sector"),
colnms.new = c("yearCS", "sectorCS")
)
dat |
the dataframe of observations |
yearLevs |
years to split the data according to catch shares, default = as.character(2011:max(dat$ryear) |
sectorLevs |
sectors that are appart of catch shares, default = list(c('Catch Shares','LE CA Halibut','Shoreside Hake') |
colnms |
: the names of the columns to subset over (i.e., c("GEAR_TYPE","COMMON_NAME") ). Do not include year columns here, that is kept separate. If numeric, it refers to the column number |
colnms.new |
new user specified column names which should be consistent with those defined by colnms (e.g., c("Gear.Out", "State")) |
Allan Hicks and Chantel WEtzel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.