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

Returned sf object #5

Open
chenjoshua7 opened this issue Apr 11, 2024 · 0 comments
Open

Returned sf object #5

chenjoshua7 opened this issue Apr 11, 2024 · 0 comments

Comments

@chenjoshua7
Copy link

The following code does return an sf object.

countries_sf <- [get_location_coords](https://worldbank.github.io/rsocialwatcher/reference/get_location_coords.html)(
  location_unit_type = "countries",
  location_keys      = [c](https://rdrr.io/r/base/c.html)("US", "MX", "CA"),
  version            = VERSION,
  token              = TOKEN
)

However, this returns a dataframe. I found it confusing because of the variable name.

us_states_sf <- get_fb_parameter_ids(
  type = "region", 
  country_code = "US", 
  version = VERSION, 
  token = TOKEN,
  add_location_coords = T)
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

1 participant