writeces: Write CES data to a file

View source: R/writeces.R

writecesR Documentation

Write CES data to a file

Description

Provides a wrapper function to write CES data objects to a comma-separated text file

Usage

writeces(cesobj, file = "", na.string = ".", age = 0, ads = FALSE, jvs = FALSE, prod = FALSE, verbose=TRUE)

Arguments

cesobj

a CES object

file

A valid filename

na.string

Character(s) to use to represent missing values in the output file

age

Euring age code - 3 for juvenile or 4 for adult

ads, jvs, prod

logical, if TRUE write out data for adult/juvenile abundance/productivity only.

verbose

logical, if TRUE write out individual visit data writing plot data.

Details

Write an object of class CES to a comma-separated text file. Use argument 'age' to just write juvenile or adult data. If outputting the results of a model fit from index, normally one will want to summarise results for both age-classes and productivity measure, but the facility is provided to do this for one age-class only if desired (by setting ads, jvs or prod equal to TRUE respectively).

Author(s)

Rob Robinson

Examples

## Not run: 
data(ukdata)
robin.dat=extract.data(ukdata,species=10990)
writeces(robin.dat, file="d:\data\robin.csv")

## End(Not run)

btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.