Learn R Programming

caretSDM (version 1.1.0.1)

buffer_sdm: Create buffer around occurrences

Description

Create buffer around records in occ_data to be used as study area

Usage

buffer_sdm(occ_data, size = NULL, crs = NULL)

Value

A sf buffer around occ_data records.

Arguments

occ_data

A data.frame object with species, decimalLongitude and decimalLatitude columns. Usually the output from GBIF_data.

size

numeric. The distance between the record and the margin of the buffer (i.e. buffer radius).

crs

numeric. Indicates which EPSG it the occ_data in.

Author

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

See Also

GBIF_data

Examples

Run this code
# Create sdm_area object:
study_area <- buffer_sdm(occ, size=50000, crs=6933)
plot(study_area)

Run the code above in your browser using DataLab