read.FLIndices {FLCore} | R Documentation |
An FLIndices object (collection of indices) is initialized by importing data. Currently, only VPA format is recognized.
read.FLIndices(file, file2, type="VPA", index.names, descs, methods="CPUE", desc = paste("Imported form ", type, " file '", file, "'", sep = ""))
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 |
An FLIndices
object is returned
We advice to check for indices names so that restricted characters or national characters are removed!
FLR Team
## 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)