cynthiahqy / conformr-xmap-project

R Package for harmonising data of different classifications or aggregations into a single dataset
MIT License
7 stars 1 forks source link

Include Aus State Population data in xmap package? #103

Closed cynthiahqy closed 1 year ago

cynthiahqy commented 1 year ago

I use Australia state level population data in a few places to illustrate crossmap concepts. Currently I'm just redefining the object in each vignette, would be maybe make sense to include it as a data object in the package?

It would make sense to include some toy objects so people can play with making xmaps out the box... but maybe I just include some same objects in the examples etc.?

state_data <- tibble::tribble(
                              ~state,    ~adm1,    ~Pop,
                   "New South Wales", "AU-NSW", 8153600,
                          "Victoria", "AU-VIC", 6613700,
                        "Queensland", "AU-QLD", 5322100,
                   "South Australia",  "AU-SA", 1820500,
                 "Western Australia",  "AU-WA", 2785300,
                          "Tasmania", "AU-TAS",  571500,
                "Northern Territory",  "AU-NT",  250600,
      "Australian Capital Territory", "AU-ACT",  456700
)

If I do put it in the package:

cynthiahqy commented 1 year ago

To include a raw .xlsx file: https://r-pkgs.org/data.html#sec-data-extdata

cynthiahqy commented 1 year ago

tracked in #117