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

no reconoce el geo code #1

Open
CamilaAchuri opened this issue Apr 25, 2023 · 1 comment
Open

no reconoce el geo code #1

CamilaAchuri opened this issue Apr 25, 2023 · 1 comment

Comments

@CamilaAchuri
Copy link
Contributor

No encuentra el match si solo se ingresa el id

  data <- tibble::tribble(
    ~id, ~departamento, ~cantidad, ~categoria,
    16, "Alta Verapaz", 2,"mayor",
    15, "Baja Verapaz", 4,"menor",
    4, "Chimaltenango", 5,"mayor",
    9, "Quetzaltenango", 6,"menor"
  )
  data <- data[,-2]
  gd_match(data, map_name = "gtm_departments")
@CamilaAchuri
Copy link
Contributor Author

el problema esta en que se debe ingresar con el mismo tipo de dato que se encuentra en el topojson

data <- tibble::tribble(
    ~id, ~departamento, ~cantidad, ~categoria,
    "16", "Alta Verapaz", 2,"mayor",
    "15", "Baja Verapaz", 4,"menor",
    "04", "Chimaltenango", 5,"mayor",
    "09", "Quetzaltenango", 6,"menor"
  )
  data <- data[,-2]
  gd_match(data, map_name = "gtm_departments")

CamilaAchuri added a commit that referenced this issue May 9, 2023
Merge pull request #5 from CamilaAchuri/main
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