emergence_export: Save Emergence-Period Projection Results

View source: R/emergence_export.R

emergence_exportR Documentation

Save Emergence-Period Projection Results

Description

Saves the quantile predictions (eclosion dates, and hatch dates when present) as CSV (UTF-8) or xlsx. The cumulative-development table behind the projection is written alongside by default.

Usage

emergence_export(x, file = "emergence_results.csv", include_stages = TRUE, ...)

Arguments

x

A "emergence" object returned by emergence_calc or emergence_analyze.

file

Output path; the format is chosen by the extension (.csv / .xlsx).

include_stages

Logical; whether to also write the cumulative-development table. Default TRUE.

...

Further arguments passed to write.csv (CSV mode).

Examples


f <- system.file("extdata", "emergence_example.csv",
                 package = "insectecol")
fit <- emergence_calc(emergence_read(f), survey_date = "2026-03-20")
emergence_export(fit, tempfile(fileext = ".csv"))


insectecol documentation built on Oct. 5, 2026, 5:08 p.m.