Writes outputs from the stochastic population model to an .xlsx file on disk.

# S3 method for narwproj
write(obj, prefix = "narwproj", ...)

Arguments

obj

An object of class narwproj, as returned by predict.narwsim.

prefix

Character string. Output file name. Defaults to "narwproj".

...

Additional arguments passed to write.xlsx.

Value

An Excel file containing four sheets:

  • Abundance: Estimated mean right whale abundance (calculated across replicate projections), summarized by year and cohort. Lower and upper bounds of the associated confidence interval are also reported.

  • Projection: Estimated right whale abundance, by year, cohort, and projection.

  • Births: Numbers of calving events, summarized by year and projection.

  • Deaths: Numbers of mortality events, summarized by year and projection.

Author

Phil J. Bouchet

Examples

if (FALSE) {
library(narwind)
m <- narw(1000)
m <- augment(m)
prj <- predict(m)
write(m)
}