readAspic: read ASPIC text files.

Description Arguments Value Longwinded Explanation See Also Examples

Description

Reads the the various ASPIC files and returns if possible an FLR object, otherwise returns a data frame.

Arguments

file;

the name of the file which the data are to be read from.

Value

The object returned depends upon what is being read in.

Longwinded Explanation

The executable version of ASPIC uses a number of text files i.e.

inp the input file with data, starting guesses, and run settings and for output,
bio estimated stock and F trajectory for each bootstrap trial,
prb as bio but with projection results,
rdat inputs and estimates specially formatted for R,
det estimates

See Also

writeAspic,biodyn

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
   dirMy="/home/laurie/Desktop/gcode/gbyp-sam/tests/aspic/bet/2010/run3"

   ## list of file types
   aspic:::files
   
   is(readAspic(paste(dirMy,"aspic.inp",sep="/")))
   is(readAspic(paste(dirMy,"aspic.bio",sep="/")))
   is(readAspic(paste(dirMy,"aspic.inp",sep="/")))
   is(readAspic(paste(dirMy,"aspic.prb",sep="/")))
   is(readAspic(paste(dirMy,"aspic.rdat",sep="/")))
   is(readAspic(paste(dirMy,"aspic.det",sep="/")))
   
## End(Not run)

laurieKell/aspic documentation built on May 20, 2019, 7:58 p.m.