readdata: readdata reads in a standard format data file

View source: R/datalow_utils.r

readdataR Documentation

readdata reads in a standard format data file

Description

readdata reads in a standard format data file. An example of the standard format is generated by using the function dataTemplate, which generates an example datafile which can be used to demonstrate the methods present in datalowSA, or can be used as a template to edit and input a new or different dataset.

Usage

readdata(filename, property = FALSE, verbose = TRUE)

Arguments

filename

the filename (including the full path if required) containing the data in the standard format.

property

does the data include a table of length-at-age, maturity-at- age, weight-at-age, fecundity-at-age, and that kind of thing (see the standard format for a list of data.)

verbose

Default = TRUE, which prints out details as data is read in.

Value

a list of three objects, fish includes the Year, Catch, CPUE, and SE of the CPUE, glb containing an array of biological properties that can be global, and props containing age, laa, waa, maa, sela.

Examples

## Not run: 
dataTemplate(filename="test.csv", title="A test of the functions")
ans <- readdata("test.csv",property=FALSE)
str(ans)

## End(Not run)             # filename="sardine.csv"; 

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.