wfmackey / absmaps Goto Github PK
View Code? Open in Web Editor NEWDownload, compress and tidy ABS mapping data
License: Other
Download, compress and tidy ABS mapping data
License: Other
Use absmapsdata
for data; and save this package to only downloading, converting and compressing.
Means there is no return()
object, and instead objects need to be assign globally which is a bit messy.
Maybe: keep the multi-item download functionality, but remove that functionality for load.
Likely some wrapper around an sf:: function.
Because I am already doing it and correspondences --- especially for SAs between 2011 and 2016 --- will likely play a bigger role in this package.
Not sure how consequential this will be
Area names as area: sa1
, sa2
, etc.
Area codes as _code
: sa1_code
, sa2_code
, etc.
Function:
For a given value n
in LHS, proportion based on ratio
to RHS correspondence.
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] absmaps_0.2.1 sf_0.9-5
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 rstudioapi_0.11 rmapshaper_0.4.4 magrittr_1.5 hms_0.5.3 units_0.6-7
[7] tidyselect_1.1.0 jsonvalidate_1.1.0 R6_2.4.1 rlang_0.4.7 dplyr_1.0.1 tools_3.5.0
[13] grid_3.5.0 KernSmooth_2.23-15 e1071_1.7-3 DBI_1.1.0 ellipsis_0.3.1 class_7.3-14
[19] yaml_2.2.1 httpcode_0.3.0 tibble_3.0.3.9000 lifecycle_0.2.0 crayon_1.3.4 readr_1.3.1
[25] purrr_0.3.4 vctrs_0.3.2.9000 crul_0.9.0 curl_4.3 glue_1.4.1 V8_3.2.0
[31] compiler_3.5.0 pillar_1.4.6 generics_0.0.2 geojsonlint_0.4.0 classInt_0.4-3 jsonlite_1.7.0
[37] pkgconfig_2.0.3
Downloading any shape file using download_absmaps downloads a .zip which can't be opened - either in R or just in Windows.
absmaps::download_absmaps("mesh_sa", saveDirectory = ".", removeSourceFiles = F)
#> Warning in absmaps::download_absmaps("mesh_sa", saveDirectory = ".",
#> removeSourceFiles = F): Note that the compression of mesh block and SA1 files
#> will take AGES (about 10 minutes on my testing. You may well have a better
#> computer).
#> Downloading mesh_sa2016 data from abs.gov.au
#> Warning in utils::unzip(paste0(saveDirectory, "/", area, year, ".zip"), : zip
#> file is corrupt
#> Reading mesh_sa2016 shapefile
#> Error: Cannot open "./mesh_sa2016/MB_2016_SA.shp"; The file doesn't seem to exist.
Created on 2020-08-17 by the reprex package (v0.3.0)
But if I do it manually through utils::download.file() with mode = "wb" then I have no problem
Yeah need to do, the onboard process currently is terrible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.