Skip to contents

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

Schvitz G, Girardin L, Rüegger S, Weidmann NB, Cederman L, Gleditsch KS (2022). “Mapping the International System, 1886-2019: The CShapes 2.0 Dataset.” Journal of Conflict Resolution, 66(1), 144–161. ISSN 0022-0027, doi:10.1177/00220027211013563 , 2024-11-22.

Examples

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