Changelog
hpa.spatial 0.2.13
remove hideous meta-programming that was handling the recursive calling of
map_data_with_correspondence()
(now that it’s not used recursively).where possible to use a combination of ASGS correspondence tables (including combining multiple) use these for mapping data across editions/geographies.
avoid recursive programming for
map_data_with_correspondence()
by using new function:.map_data_with_ct()
update testing suite to be faster to run and more comprehensive.
hpa.spatial 0.2.12
data read from
{hpa.spatial.data}
is read from a specific commit to ensure (from now on) old versions of hpa.spatial will read the same data as they are expected to (did at the time of analyses).allow user to specify a custom correspondence table to
map_data_with_correspondence()
.add access to recently added Aged Care Planning Region shape files (on
{hpa.spatial.data}
).only do GHA for R CMD CHECK on Windows.
update README.
update vignettes.
hpa.spatial 0.2.11
- Ensure that SA2s can completely map to LHNs (including SA2s with zero pop). Includes an associated change to
{hpa.spatial.data}
commit.
hpa.spatial 0.2.10
update
create_child_geo()
to assign un-parented mesh blocks to the nearest polygon fromparent_geo
.update testing snaps after LHN polygon was updated on
{hpa.spatial.data}
.create vignettes.
hpa.spatial 0.2.9
use open-source (MIT) license.
bug fix: when creating a correspondence table and there is a complete match between the polygons but all meshblocks data within have populations of zero, allow the match with ratio = 1.
bug fix: when using map_data_with_correspondence, avoid bug which converts
Date
grouping variables to numeric (use ofcbind.data.frame
, notcbind
).workflow: add github action workflows for checking package (check-standard) and making a github pages website (pkgdown).
bug fix:
map_data_with_correspondence()
would get confused when a vector object is used in combination with.data
. Now the vector is attempted to be evaluated and if that errors, it accesses it from.data
.
hpa.spatial 0.2.8
allow user to get Modified Monash Model data (for SA1, 2016 ed.) using
get_polygon(name = "mmm19")
orget_mmm19_poly()
.bug fix: pass
value_type
appropriately whengroups
are used inmap_data_with_correspondence()
.feature: let
map_data_with_correspondence()
take a list of vectors for groups or, when.data
is passed, can take a character vector or column names or a vector of symbols.
hpa.spatial 0.2.7
allow
map_data_with_correspondence()
to takefrom_geo
andto_geo
rather than only areas and years. (Also requires addingexport_fname
arg, consistent with changes toget_correspondence_tbl()
.)allow
get_correspondence_tbl()
to takefrom_geo
andto_geo
rather than only areas and years to get the polygons viaget_polygon()
. Also allow user to specify anexport_fname
(file name) to save the correspondence table for these new tables as they can’t be named withmake_fname()
.
hpa.spatial 0.2.6
make
create_child_geo()
which adapts ansf
polygon (child_geo
) object by splitting polygons which span across multiple polygons within another passedsf
polygon object (parent_geo
). Can be used to adapt, for example, SA3s that span across multiple LHN’s so that those that cross are split.move datasets that are used to hpa.spatial.data pkg and access them just int he same way that
{strayr}
reads in data from{absmapsdata}
.properly use
export_dir
fromget_polygon()
.remove all internal data and rely only on data from hpa.spatial.data.
hpa.spatial 0.2.4
use tidy evaluation on quosures to avoid problems with accessing objects passed to
hpa.spatial
functions that evaluate calls.save and read correspondence tables to save time particularly when a correspondence table that’s being created is being created many times over within
map_data_with_correspondence()
(say, whengroups
is being used).
hpa.spatial 0.2.3
- bug fix: call
get_correspondence_tbl()
from parent environment inmap_data_with_correspondence()
.
hpa.spatial 0.2.2
- default mb_geo in
map_data_with_correspondence()
as missing and apply default within function code. Using ahpa.spatial
function as a default arg fails when it’s called by namespace (hpa.spatial::map_data_with_correspondence()
).
hpa.spatial 0.2.1
add
get_correspondence_tbl()
which callsstrayr::read_correspondence_tbl()
and if it fails to find one, it usesmake_correspondence_tbl()
to create one. Takes the same args asstrayr::read_correspondence_tbl()
but with the option to use a different mesh blocks edition/population data formake_correspondence_tbl()
.add
make_correspondence_tbl()
to create a correspondence table between two given geographies and aPOINT
geometry (sf
) with population counts (Person
as is standard in mesh blocks data).added a
.data
argument tomap_data_with_correspondence()
so thatcodes
,values
andgroups
can be passed by reference (like indplyr::mutate()
).always return a tibble from
map_data_with_correspondence()
(just for consistency).add tests for (#3) which is a non-issue.
hpa.spatial 0.2.0
create an
lhn
dataset to replace the independent state datasets (qld_hhs
,nsw_lhd
,sa_lhn
etc…).bug fix (#2): use
withr::with_package()
andwithr::with_environment()
to evaluate calls inget_polygon()
withhpa.spatial
namespace within copy of parent environment.
hpa.spatial 0.1.1
-
initial release with two main functions:
get_polygon()
accesses the polygons from{absmapsdata}
viastrayr::read_absmap()
as well as some other shape files internal to this pkgmap_data_with_correspondence()
allows the user to map data (unit or aggregate values) across between editions of the ASGS as well as up within nested levels (i.e. SA2 to SA3).