EF1_Numerator: Calculate the numerator for the first level expansion factor.

Description Usage Arguments Details Value Author(s)

View source: R/EF1_Numerator.R

Description

Workflow

EF1_Numerator is not run by the user. It is a sub-function of getExpansion_1

Usage

1
EF1_Numerator(Pdata, verbose = TRUE, plot = FALSE)

Arguments

Pdata

A PacFIN data.frame

verbose

A logical value specifying if output should be written to the screen or not. Good for testing and exploring your data but can be turned off when output indicates errors. The default value is TRUE.

plot

Argument takes either a logical or character value specifying the file name if you want to write the plots to a disk rather than printing them to the console. If plot = FALSE no plots will be generated. If printing to the disk the character value should end in .png as png() is used to save the plotting device.

Details

Trip_Sampled_Lbs is calculated differently for each state:

Value

A Pdata with additional columns, where Species_Percent_Sampled is the percentage of this species in the samples; Use_acs is all_cluster_sum with NAs replaced by year-specific, state-specific medians; Trip_Sampled_Lbs is the sample weight in pounds;

Author(s)

Andi Stephens


nwfsc-assess/PacFIN.Utilities documentation built on June 30, 2017, 8:49 a.m.