globalgov / manystates

Many data on sovereign states
https://globalgov.github.io/manystates
Creative Commons Attribution 4.0 International
4 stars 1 forks source link

Add capital and latitude-longitude data #50

Closed jhollway closed 2 years ago

BBieri commented 2 years ago

This is already present in the {cshapes} data. Do we need both sources?

jhollway commented 2 years ago

Does {cshapes} have all of this data, also for historical capitals/capitals of historical states?

BBieri commented 2 years ago

Yes, simply use import_cshapes(date = "1900-01-01") with the corresponding date and you'll get a data frame containing not only the shapes but also the coordinates of the capital of the (historical) country. If you're looking for data on distances, use the import_distmatrix(date = "1900-01-01", type = "capdist") function or the import_distlist() function with the corresponding date.

jhollway commented 2 years ago

Please make sure that all of this data is included before we dispose of the material added.

jaeltan commented 2 years ago

Some of the capitals and states are not included in {cshapes} so I'm adding the data into {manystates}