lc50_export: Export LC Results to 'Excel'

View source: R/lc50_export.R

lc50_exportR Documentation

Export LC Results to 'Excel'

Description

Writes the results of lc50_calculate into a multi-sheet 'Excel' workbook: a summary sheet with the LC estimates, confidence intervals and regression parameters of all files and methods, plus one detail sheet per file with the preprocessed data and the parameters of the successfully computed methods.

Usage

lc50_export(results, output_dir = NULL, filename = "LC50_results.xlsx")

Arguments

results

The result list returned by lc50_calculate.

output_dir

Character string; the output folder. If NULL (the default), a folder selection dialog is opened.

filename

Character string; the name of the output file (default "LC50_results.xlsx").

Details

The detail sheet of each file contains the preprocessed data (concentration, tested and dead insects, raw and corrected mortality, log concentration and probit) followed by a parameter block of every method that succeeded for that file. Files for which no method succeeded get an empty sheet.

Value

The full path of the exported xlsx file (invisibly).

See Also

lc50_calculate, lc50_plot

Examples

f <- system.file("extdata", "lc50_example.csv", package = "insectecol")
lc50_export(lc50_calculate(lc50_read(f)), output_dir = tempdir())

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