read.FLIndices {FLCore}R Documentation

Import FLIndices data from a file

Description

An FLIndices object (collection of indices) is initialized by importing data. Currently, only VPA format is recognized.

Usage

read.FLIndices(file, file2, type="VPA", index.names, descs, methods="CPUE",
    desc = paste("Imported form ", type, " file '", file, "'", sep = ""))

Arguments

file The VPA CPUEs file
file2 Second output file for ICA style indices
type Type of index file. Presently supports "VPA", "ICA", "Adapt" and "CSA"
index.names Names for the various index datasets
descs Description for the various index datasets
methods Methods for the various index datasets. By default, "CPUE" for all series
desc A general desription for the FLIndices collection

Value

An FLIndices object is returned

WARNING

We advice to check for indices names so that restricted characters or national characters are removed!

Author(s)

FLR Team

See Also

FLIndices-class

Examples

## Not run: 
## Supposing you have a VPA suite data in youe working directory
## and indices datasets are in the file 'fleet', then:

# my.indices <- read.Indices("fleet")

## should import these data into an FLIndices object
## End(Not run)

[Package FLCore version 1.4-4 Index]