captured_by_ncells: Calculate establishment likelihood captured in top n cells

View source: R/captured_by_ncells.R

captured_by_ncellsR Documentation

Calculate establishment likelihood captured in top n cells

Description

Calculate the proportion of establishment likelihood captured in top n cells.

Usage

captured_by_ncells(infiles, names, n_cells, all = TRUE)

Arguments

infiles

Character vector. File path(s) to one or more raster files.

names

Character vector. Names corresponding to infiles.

n_cells

Integer. The number of cells to consider.

all

Logical. If TRUE, return the proportion captured from 1 to n cells. If FALSE, return the cumulative proportion.

Value

Proportion of establishment likelihood captured, or a vector of cumulative proportions.


jscamac/edmaps documentation built on June 11, 2022, 1:26 a.m.