stamp.group.summary: Compile stamp summary statistics by group

Description Usage Arguments Details Value

View source: R/stamp.group.summary.r

Description

The function stamp.group.summary compiles summary statistics for each STAMP grouping. Specifically, it computes the area of each STAMP event type (e.g., generation, expansion, etc.) within each grouping. It also computes the number of events belonging to each event type.

Usage

1
stamp.group.summary(stmp, area = TRUE, count = TRUE)

Arguments

stmp

a SpatialPolygonsDataFrame generated from the stamp function.

area

logical, whether or not to compute the STAMP event areas.

count

logical, whether or not to compute the count of STAMP evets within each group.

Details

stamp.group.summary computes area and count summary statistics of STAMP output. Note that if both area and count are set to FALSE, stamp.group.summary returns a data.frame with just the group IDs as the only column.

Value

A data.frame where rows are stamp groups and columns correspond to the STAMP event types (ID, areas, and counts).


colinr23/stampr documentation built on May 13, 2019, 9:54 p.m.