ppp.to.comm: Conversion of point pattern to community matrix Y

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Conversion of point pattern to community matrix Y

Usage

1
ppp.to.comm(comm.ppp, dim.yx, plotstack = FALSE, clean = FALSE)

Arguments

comm.ppp

A marked point pattern of spatstat's 'ppp', where marks identify each point (individual) to a species.

dim.yx

Number of cells along the Y and X dimension of the raster.

plotstack

Logical. Should the raster for each species be plotted?

clean

Logical. Should only sites with positive abundance of at least one species be returned?

Value

A list containing the raster stack with rasters for each species, the abundance matrix Y, spatial coordinates of each site (grid cell), and number of cells.


petrkeil/spasm documentation built on Jan. 15, 2021, 6:08 p.m.