lets.gridirizer: Fits a grid into a PresenceAbsence object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lets_gridirizer.R

Description

This function creates a grid in shapefile format and adds its cells' IDs to the presence-absence matrix. The function was created to facilitate the use of the PresenceAbsence object for the ones who prefer to work with a grid in shapefile format.

Usage

1

Arguments

x

A PresenceAbsence object.

Value

The result is a list of two objects. The first is a grid in shapefile format; the second is a presence-absence matrix with an aditional column called SP_ID (shapefile cell identifier).

Author(s)

Bruno Vilela

See Also

plot.PresenceAbsence

lets.presab.birds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(PAM)
PAM.grid <- lets.gridirizer(PAM)
names(PAM.grid)
# Grid in polygon format (can be saved in shapefile)
PAM.grid$Grid
# Presence-absence matrix (beggining only)
head(PAM.grid$Presence[, 1:5])

## End(Not run)

letsR documentation built on Jan. 24, 2018, 6:36 p.m.