R/helpers.R

Defines functions ai_classes ai_species

Documented in ai_classes ai_species

#' Helpers
#' Helper functions to list species and vegetation/soil/footprint classes.

#' @name helper
NULL

#' @export
#' @rdname helper
ai_species <- function() {
    if (!.loaded())
        stop("Use ai_load_coefs() to load coefs")
    out <- NULL
    for (taxon in names(.ai1$COEFS)) {
        tmp <- .ai1$COEFS[[taxon]]$species
        tmp <- tmp[tmp$ModelNorth | tmp$ModelSouth,]
        out <- rbind(out, tmp)
    }
    out
}

#' @export
#' @rdname helper
ai_classes <- function() {
    .lt()
}
ABbiodiversity/allinone documentation built on March 18, 2022, 3:20 a.m.