Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capitals #243

Closed
ibarraespinosa opened this issue May 22, 2021 · 5 comments
Closed

Add capitals #243

ibarraespinosa opened this issue May 22, 2021 · 5 comments

Comments

@ibarraespinosa
Copy link

Hello!

What about adding capitals?

@rafapereirabr
Copy link
Member

rafapereirabr commented May 22, 2021

Hi @ibarraespinosa. A function that returns a data.frame with the names and codes of capitals would be a good idea. Is this what you had in mind?

@ibarraespinosa
Copy link
Author

ibarraespinosa commented May 22, 2021 via email

@rafapereirabr
Copy link
Member

Hi all. My question is, should the function return the boundaries of the municipalities as MULTIPOLYGON or the the location of municipal seats as POINT ?

@rafapereirabr
Copy link
Member

The dev version of geobr in R now has a read_capitals() function.

This function downloads either a spatial sf object with the location of the municipal seats (sede dos municipios) of state capitals, or a data.frame with the names of codes of state capitals.

# Read spatial data with the  municipal seats of state capitals
capitals_sf <- read_capitals(as_sf = TRUE)

# Read simple data.frame of state capitals
capitals_df <- read_capitals(as_sf = FALSE)

@ibarraespinosa
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants