makedatasum: makedatasum generates a table summarizing information about...

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

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.

Usage

1
makedatasum(InData, InData1, out)

Arguments

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

Value

a matrix of each summary variable by year

Examples

 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)

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