Description Usage Arguments Value Examples
(ISBM/CYER) Import one or more ISBM index (*.pt) files.
1 | readPT(filenames)
|
filenames |
A character vector. The names of the *.pt files for import. |
A list comprising elements that are also lists, one for each .pt file
imported. Each sub list comprises six elements. Their names are:
metadata
, data.isbm
, data.isbm.long
,
data.isbm.ages
, data.bper
, data.bper.long
. The element
metadata
is a list of seven named vectors that include all the same
information at the top of each .pt file. The element data.isbm
is a
data frame of the ISBM index data in the same format as found in the .pt
file. The element data.isbm.long
is a data frame and comprises the
same ISBM index data reshaped into the more useful 'long' format. The age
data are exluded from data.isbm.long
but can be found in
data.isbm.ages
, which is a data frame in long format. The element
data.bper
is data frame of the base perior exploitation rate data
(BPER), in the same format as found in the .pt file. The element
data.bper.long
is the same BPER data but in long format.
1 2 3 4 5 6 7 | ## Not run:
data.path <- "../data/isbm"
pt.filenames <- list.files(data.path, pattern = ".PT$")
pt.filepaths <- paste(data.path, pt.filenames, sep="/")
pt.list <- readPT(pt.filepaths)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.