cshapes_gwcode: The Gleditsch-Ward (cShapes 2.0 version) code in each...

View source: R/data_cshapes.R

cshapes_gwcodeR Documentation

The Gleditsch-Ward (cShapes 2.0 version) code in each grid-cell

Description

Uses max area for cells with multiple countries. If actual tie, the algorithm will use the lowest index.

Usage

cshapes_gwcode(measurement_date, cshp = read_cshapes())

Arguments

measurement_date

A single date as Date object

cshp

The CShapes dataset, for instance as given by read_cshapes()

Value

SpatRast

References

\insertRef

schvitzMappingInternationalSystem2022priogrid

Examples

# gwcode_one_cross_section <- cshapes_gwcode(as.Date("2010-01-01"))

prio-data/priogrid documentation built on June 14, 2025, 11:06 p.m.