Learn R Programming

glossa (version 1.0.0)

glossa_export: Export Glossa Model Results

Description

This function exports various types of Glossa model results, including native range predictions, suitable habitat predictions, model data, variable importance, functional response results, and presence/absence probability cutoffs. It generates raster files for prediction results, CSV files for model data and variable importance, and CSV files for functional response results. Additionally, it creates a CSV file for presence/absence probability cutoffs if provided.

Usage

glossa_export(
  species = NULL,
  models = NULL,
  layer_results = NULL,
  fields = NULL,
  model_data = FALSE,
  model_summary = FALSE,
  fr = FALSE,
  prob_cut = FALSE,
  varimp = FALSE,
  cross_val = FALSE,
  layer_format = "tif",
  projections_results = NULL,
  presence_absence_list = NULL,
  other_results = NULL,
  pa_cutoff = NULL
)

Value

A character vector of file paths for the exported files or directories.

Arguments

species

A character vector specifying the species names.

models

A character vector specifying the types of models to export results for.

layer_results

A list containing layer results for native range and suitable habitat predictions.

fields

A character vector specifying the fields to include in the exported results.

model_data

Logical, indicating whether to export model data.

fr

Logical, indicating whether to export functional response results.

prob_cut

Logical, indicating whether to export presence/absence probability cutoffs.

varimp

Logical, indicating whether to export variable importance.

cross_val

Logical, indicating whether to export cross-validation metrics.

layer_format

A character vector specifying the format of the exported raster files.

projections_results

A list containing projections results.

presence_absence_list

A list containing presence/absence lists.

other_results

A list containing other types of results (e.g., variable importance, functional responses, cross-validation).

pa_cutoff

A list containing presence/absence probability cutoffs.