Skip to content

mhq_terr_popunits has non-existing values in grts_ranking_draw #47

Description

@florisvdh

Using current master; d29cd9b.

I just came to find out that a bunch of GRTS addresses in mhq_terr_popunits, notably in the grts_ranking_draw column, do not exist in the GRTSmaster_habitats data source. What should happen to these rows @ToonHub ?

> grts_mh <- read_GRTSmh()
> mhq_terr_datapath <- file.path(dirname(gitroot), "n2khab-sample-admin/data/mhq_terr/rapportage2025")
> mhq_terr_popunits_grts <-
    read_vc("mhq_terr_popunits", root = mhq_terr_datapath) %>%
    as_tibble()
> 
> suspected_grts <- c(
    6, 55, 60, 61, 63, 64, 70, 83, 87, 36, 69, 81, 
    84, 90, 13, 44, 103, 92, 94, 62
  )
> 
> suspected_grts %in% mhq_terr_popunits_grts$grts_ranking_draw
 [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[18] TRUE TRUE TRUE
> 
> suspected_grts %in% terra::values(grts_mh)
 [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[15] FALSE FALSE FALSE FALSE FALSE FALSE

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions