extract_map: Extract map with the desired density

View source: R/extract_map.R

extract_mapR Documentation

Extract map with the desired density

Description

This function allows, from a density map density_obj (density object of the dsims packages), to provide a map of class sf (data.frame).It allows to recalculate the correct density ratios of the provided map according to the desired number of individuals in the area N.

Usage

extract_map(density_obj, N, crs)

Arguments

density_obj

Density object from dsims package. The map containing information density ratio on the study area.

N

Numeric. The number of individuals desired in the area.

crs

Numeric. Projection system.

Value

sf object. The map with the densities corresponding to the number of individuals desired in the study area.

Examples


data(dataset_density)

map <- extract_map(density_obj = dataset_density,
                   N = 500,
                   crs = 2154)


head(map)


maudqueroue/intercali documentation built on Oct. 8, 2022, 2:09 p.m.