FLSAM.out | R Documentation |
Document the results of the FLSAM assessment including all input values, model settings and output in formatted tables
FLSAM.out(stck, tun, sam, format = "TABLE %i.")
sam.out(stck, tun, sam, format = "TABLE %i.")
stck |
An FLStock object to be documented |
tun |
An FLIndices object to be documented |
sam |
An FLSAM assessment model output object |
format |
The Title to be specified with each table. |
This function produces a set of tables that can be used to directly document an assessment. Included in the tables are all (relevant) input data, the details of the tuning indices, the model parameter configuration, the estimated parameters and all estimated values. The structure and approach is inspired by the "ica.out" documentation from the ICA package.
sam.out
is simply an alias for FLSAM.out.
The output is a table that can be written to disk and pasted directly into any text editor.
N.T. Hintzen
data(NSH)
data(NSH.sam)
sam.out <- FLSAM.out(NSH,NSH.tun,NSH.sam,format="Table %i")
#-Set margins to make prettier output
old.opt <- options("width","scipen")
options("width"=80,"scipen"=1000)
#Write the file to the working directory
write(sam.out,file="sam.out")
#-Reset margins
options("width"=old.opt$width,"scipen"=old.opt$scipen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.