Get correct set of state borders for a date
states_geom(date, ccode = NULL)
date | A Date or YYYY-MM-DD string |
---|---|
ccode | Vector of numeric G&W country codes to subset the result by |
x <- states_geom("2010-01-01") x#> Simple feature collection with 194 features and 24 fields #> geometry type: MULTIPOLYGON #> dimension: XY #> bbox: xmin: -180 ymin: -55.90223 xmax: 180 ymax: 83.11387 #> epsg (SRID): 4326 #> proj4string: +proj=longlat +ellps=WGS84 +no_defs #> First 10 features: #> CNTRY_NAME AREA CAPNAME CAPLONG CAPLAT FEATUREID #> 0 Guyana 211982.0050 Georgetown -58.2 6.800000 0 #> 1 Suriname 145952.2740 Paramaribo -55.2 5.833333 1 #> 2 Trinidad and Tobago 5041.7290 Port-of-Spain -61.5 10.650000 2 #> 3 Venezuela 916782.2172 Caracas -66.9 10.500000 3 #> 4 Samoa 2955.2124 Apia -172.0 -13.800000 4 #> 5 Tonga 464.7473 Nuku'alofa -175.0 -21.100000 5 #> 6 Argentina 2787442.0977 Buenos Aires -58.7 -34.600000 6 #> 7 Bolivia 1092697.4356 La Paz -68.2 -16.500000 7 #> 8 Brazil 8523619.5715 Brasilia -47.9 -15.800000 8 #> 9 Chile 745808.4936 Santiago -70.7 -33.500000 9 #> COWCODE COWSYEAR COWSMONTH COWSDAY COWEYEAR COWEMONTH COWEDAY GWCODE GWSYEAR #> 0 110 1966 5 26 2016 6 30 110 1966 #> 1 115 1975 11 25 2016 6 30 115 1975 #> 2 52 1962 8 31 2016 6 30 52 1962 #> 3 101 1946 1 1 2016 6 30 101 1946 #> 4 990 1976 12 15 2016 6 30 990 1962 #> 5 955 1999 9 14 2016 6 30 972 1970 #> 6 160 1946 1 1 2016 6 30 160 1946 #> 7 145 1946 1 1 2016 6 30 145 1946 #> 8 140 1960 4 21 2016 6 30 140 1960 #> 9 155 1946 1 1 2016 6 30 155 1946 #> GWSMONTH GWSDAY GWEYEAR GWEMONTH GWEDAY ISONAME ISO1NUM ISO1AL2 #> 0 5 26 2016 6 30 Guyana 328 GY #> 1 11 25 2016 6 30 Suriname 740 SR #> 2 8 31 2016 6 30 Trinidad and Tobago 780 TT #> 3 1 1 2016 6 30 Venezuela 862 VE #> 4 1 1 2016 6 30 Samoa 882 WS #> 5 6 4 2016 6 30 Tonga 776 TO #> 6 1 1 2016 6 30 Argentina 32 AR #> 7 1 1 2016 6 30 Bolivia 68 BO #> 8 4 21 2016 6 30 Brazil 76 BR #> 9 1 1 2016 6 30 Chile 152 CL #> ISO1AL3 geometry #> 0 GUY MULTIPOLYGON (((-58.17262 6... #> 1 SUR MULTIPOLYGON (((-55.12796 5... #> 2 TTO MULTIPOLYGON (((-61.07945 1... #> 3 VEN MULTIPOLYGON (((-66.31029 1... #> 4 WSM MULTIPOLYGON (((-172.5965 -... #> 5 TON MULTIPOLYGON (((-175.1453 -... #> 6 ARG MULTIPOLYGON (((-71.85916 -... #> 7 BOL MULTIPOLYGON (((-62.19884 -... #> 8 BRA MULTIPOLYGON (((-44.69501 -... #> 9 CHL MULTIPOLYGON (((-73.0421 -4...