SS_splitdat: Split apart bootstrap data to make input file.

View source: R/SS_splitdat.R

SS_splitdatR Documentation

Split apart bootstrap data to make input file.

Description

A function to split apart bootstrap data files created in data.ss_new. To get bootstraps, the input "N bootstrap file to produce" in starter.ss needs to be 3 or greater. The function can either create a file for just the input data (if inputs=TRUE), a file for just the MLE values (if MLE = TRUE), or separate files for each of the bootstraps (if inputs=FALSE and MLE=FALSE).

Usage

SS_splitdat(
  inpath = "working_directory",
  outpath = "working_directory",
  inname = "data.ss_new",
  outpattern = "BootData",
  number = FALSE,
  verbose = TRUE,
  fillblank = TRUE,
  MLE = TRUE,
  inputs = FALSE,
  notes = ""
)

Arguments

inpath

Directory containing the input file. By default the working directory given by getwd() is used. Default="working_directory".

outpath

Directory into which the output file will be written. Default="working_directory".

inname

File name of input data file to be split. Default="Data.SS_New".

outpattern

File name of output data file. Default="BootData".

number

Append bootstrap number to the file name chosen in outpattern? Default=F.

verbose

Provide richer command line info of function progress? Default=TRUE.

fillblank

Replace blank lines with "#". Helps with running on linux. Default=TRUE.

MLE

Grab the maximum likelihood values from the second block in Data.SS_New (instead of bootstrap values or copies of inputs)? Default=TRUE.

inputs

Grab the copy of the input values values from the first block in Data.SS_New (instead of MLE or bootstrap values)? Default=F.

notes

Notes to the top of the new file (comment indicator "#C" will be added). Default="".

Author(s)

Ian Taylor


r4ss documentation built on May 28, 2022, 1:11 a.m.