helpCalcConTab: Compute contingency table

Description Usage Arguments Details Value See Also Examples

View source: R/helpCalcConTab.R

Description

Compute contingency table based on reference and validation data

Usage

1
helpCalcConTab(pred, ref, ref_id)

Arguments

pred

raster object containing the predicted values

ref

spatial polygon object containing the reference values for certain locations

ref_id

name of the attribute which contains the reference id values

Details

The predicted values from the raster dataset are extracted if they fall inside the individual polygons.

Value

table containing contingency values

See Also

calcKappa for calculating kappa coefficients based on the contingency table.

Examples

1
2
# Not run
calcKappa(contab)

environmentalinformatics-marburg/gpm documentation built on July 11, 2020, 11:12 a.m.