Description Usage Arguments Value Examples
makedatasum uses the two input data.frames to generates a table summarizing information about data, this includes the Total Catch of the species, number of records used, the catch used in the analyses, the number of Vessels, the GeoMean, the optimum standardized mean estimates, their StDev, the total catch <30Kg, and the proportion of catch <30Kg.
1 | makedatasum(InData, InData1, out)
|
InData |
the unselected species data, generally sps |
InData1 |
the data.frame after selection has been applied, sps1 |
out |
the output from standLM or dosingle, usually out |
a matrix of each summary variable by year
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
data(sps)
sps$CE <- NA
sps$LnCE <- NA
pick <- which((sps$catch_kg > 0) & (sps$Effort > 0))
sps$CE[pick] <- sps$catch_kg[pick]/sps$Effort[pick]
sps$LnCE[pick] <- log(sps$CE[pick])
answer <- selectdata(sps,dependent="LnCE",Ldepth=0,Udepth=600,
startyear=1986,finalyear=2015,zones=c(10,20,30),method=c("TW","TDO"),
fishery="SET")
sps1 <- answer$sps1
makedatasum(sps,sps1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.