View source: R/datalow_utils.r
readdata | R Documentation |
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.
readdata(filename, property = FALSE, verbose = TRUE)
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. |
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.
## 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";
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.