Learn R Programming

caretSDM (version 1.1.0.1)

use_mem: MacroEcological Models (MEM) in caretSDM

Description

This functions sums all species records into one. Should be used before the data cleaning routine.

Usage

use_mem(x, add = TRUE, name = "MEM")

Value

A input_sdm or occurrences object with MEM data.

Arguments

x

A occurrences or input_sdm object containing occurrences.

add

Logical. Should the new MEM records be added to the pool (TRUE) of species or the output should have only the summed records (FALSE)? Standard is TRUE.

name

How should the new records be named? Standard is "MEM".

Author

Luíz Fernando Esser (luizesser@gmail.com) https://luizfesser.wordpress.com

Examples

Run this code
# Create sdm_area object:
sa <- sdm_area(parana, cell_size = 25000, crs = 6933)

# Include predictors:
sa <- add_predictors(sa, bioc) |> select_predictors(c("bio1", "bio4", "bio12"))

# Include scenarios:
sa <- add_scenarios(sa)

# Create occurrences:
oc <- occurrences_sdm(occ, crs = 6933) |> join_area(sa)

# Create input_sdm:
i <- input_sdm(oc, sa)

# Use MEM:
i <- use_mem(i)

Run the code above in your browser using DataLab