clean: Clean the occurrence records

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A function to remove the points that are outside the extension of the raster and to maintain, at most one register per pixel.

Usage

1
clean(coord, abio)

Arguments

coord

data.frame with the coordinates

abio

an object with the rasters to be cut. Accepts an object of type RasterStack, generated by the function stack

Details

Used internally in function modelos.

Value

data.frame containing longitude and latitude.

Author(s)

Diogo S. B. Rocha

See Also

cellFromXY, mask, extract

Examples

1
2
3
fnames <- list.files(path=paste(system.file(package="dismo"), '/ex', sep=''), pattern='grd', full.names=TRUE )
predictors <- raster::stack(fnames)
clean(coord = manimax, abio = predictors)

diogosbr/modelos documentation built on May 9, 2019, 5:23 p.m.