saveresults: saveresults sends the tables generated to a text file in...

View source: R/cpuefuncs.r

saveresultsR Documentation

saveresults sends the tables generated to a text file in resultdir

Description

savereults saves all the tables generated to a text file named after the species and fishery and puts it into resultdir. The outputs include for all data relating to the species: catch-by-method, catch-by-zone, catch-by-fishery, then only for the data selected for the standardization, the: catch-by-method, catch-by-zone, and the catch-by-DepCat, but also the number of observations modified by each of the selction criteria, the data summary, and the raw output from the standardizatio.

Usage

saveresults(sps, answer, out, mods, splabel, rundir)

Arguments

sps

the data.frame containing all data relating to the species

answer

the list obtained from 'selectdata' containing the data.frame of the selected data, and the nobs table containing how different selection criteria affect the number of observations.

out

the output from standLM or dosingle containing the standardization

mods

the mods defined for the standardization

splabel

the name of the species and fishery

rundir

the path to the results directory

Value

nothing, but it does write a text file to the results directory.

Examples

## Not run: 
print("this will take some doing")

## End(Not run)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.