writeces | R Documentation |
Provides a wrapper function to write CES data objects to a comma-separated text file
writeces(cesobj, file = "", na.string = ".", age = 0, ads = FALSE, jvs = FALSE, prod = FALSE, verbose=TRUE)
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. |
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).
Rob Robinson
## Not run:
data(ukdata)
robin.dat=extract.data(ukdata,species=10990)
writeces(robin.dat, file="d:\data\robin.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.