View source: R/candidate_functions.r
factorprop | R Documentation |
factorprop summarizes the properties of a potential factor to be used in a statistical standardization of cpue data. It does this in terms of the number of records and catches by year, and how many years the factor involved reported catches. Thus if dealing with divers and vessels it provides catch by diver or vessel by year, plus number of records reported, and summarizes all of these inside a local website. The value of this is that outliers and uneven distributions of records can be easily identified and decisions made about data selection and perhaps amalgamation of levels within a factor.
factorprop(
indat,
fact,
rundir,
runname,
year = "year",
catch = "catch",
effort = "hours",
cpue = "cpue"
)
indat |
the data.frame being used for the standardization |
fact |
the name of the factor being explored, a character string |
rundir |
the results directory into which all results for the runname are put |
runname |
the name of the particular analysis |
year |
the name of the year factor in the data.frame. default='year' |
catch |
the name of the catch factor in the data.frame. default='catch' |
effort |
the name of the effort factor in the data.frame. default='hours' |
cpue |
the name of the cpue factor in the data.frame. default='cpue' |
invisibly a list of records by year, catch by year and a table with total records, actively reporting years, and total catch for each value of the factor
print("need to wait on an internal data.frame")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.