The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
tongfen_detect_anomalies lists the candidate regions,
tongfen_anomaly_joins determines the regions to join,
tongfen_join_regions joins them in data that already is on
a common geography and tongfen_join_correspondence joins
them in a correspondence for use with tongfen_aggregate.
See the new “Geocoding anomalies in TongFen timelines” vignette for
detailsmethod = "statcan". Cached files are checked against the
mirror once per session and downloaded again if they changed. The mirror
location can be changed via the
tongfen.statcan_correspondence_url option. Previously
cached statcan_correspondence_*.csv files in the tongfen
cache directory are no longer used and can be removed ## Minor
changesproportional_reaggregate giving wrong results when
the finer level data already has values for the categories to
reaggregate. The values were compared to the parent total across all
categories instead of per category, and a missing value in one child
region discarded the existing values of all its siblingstongfen_estimate underestimating values when the
intersection of a source and a target region is a geometry collection,
i.e. several polygons joined by a shared boundary linetongfen_estimate with na.rm = FALSE no
longer returns NA for target regions that only share a
boundary with a source region with missing valuestongfen_estimate now returns NA for target
regions that don’t overlap the source instead of erroring out when none
of them do, and gives a clear error when target already has
a column named like one of the variables to estimatetongfen_aggregate and
aggregate_data_with_meta scaling averages by their parent
variable more than once when the metadata lists the same variable name
for several datasets, as is common with US census data.
tongfen_aggregate now only uses the metadata of the dataset
being aggregated, conflicting aggregation rules for the same variable
are an errorna.rm = TRUE are now taken
over the regions that have a value. The parent variable of regions with
a missing average still counted toward the total the average was divided
by, pulling the result toward zero. This affects
aggregate_data_with_meta, tongfen_aggregate,
tongfen_estimate and the functions built on thembase_<variable>) instead of the parentestimate_tongfen_correspondence no longer requires the
geometry column to be named geometryrefresh = TRUE in
get_tongfen_correspondence_ca_census and
get_tongfen_ca_census now also refreshes the cached StatCan
correspondence filestongfen.cache_path
environment variable and the custom_data_path optiontongfen_estimate_ca_census returns its result
visiblytongfen_aggregate
example now passes a named list of datasets matching the metadataget_tongfen_ca_census now honours its
base_geo, na.rm, tolerance,
crs and data_transform arguments, all of which
were silently ignored. Most visibly, the documented default
base_geo = NULL now returns data without geographic
information, where previously the geography of the first dataset was
returned. Pass base_geo to get an sf object
backarea_mismatch_cutoff argument from
get_tongfen_ca_census and
get_tongfen_correspondence_ca_census, it never had any
effect. Use check_tongfen_areas to inspect area mismatches,
keeping in mind that geographies for different years are simplified
independently and differ in how water features are cut out ## Major
changesget_tongfen_correspondence_us_census to get
correspondence tables for US census geographies without also fetching
the datadec1990). The Census Bureau has retired the 1990
API endpoint, so 1990 data itself has to be brought in separately, for
example from NHGIS, and combined via tongfen_aggregatemin_area_share argument controls how much area two regions
have to have in common to count as related, default is
0.01, and no region is ever dropped. This gives
substantially finer common geographies, for Rhode Island tracts across
the 2010 and 2020 censuses 198 instead of 60, for Vermont 151 instead of
26 ## Minor changesget_tongfen_us_census gained a sumfile
argument, passed through to tidycensus, either a single value for all
censuses or a vector named by dataset. Without it 2020 data is read from
the PL 94-171 redistricting file, which carries almost no variablesget_tongfen_correspondence_ca_census gained a
crs argument for the spatial intersections, default is
3347 (Statistics Canada Lambert)get_tongfen_census_ct,
get_tongfen_census_da and
get_tongfen_ca_census_ct_from_da erroring out when called
with geo_format=NAproportional_reaggregate ignoring all but the first
base variable when base names a different variable per
category, which silently weighted every category by the same
variableestimate_tongfen_correspondence with
method="identifier" erroring out when every geographic
identifier matches and there is nothing left to estimate
geometricallytongfen_tag_largest_overlap emitting a tibble name
repair deprecation warningestimate_tongfen_correspondence and
get_tongfen_correspondence_ca_census now error out with a
clear message when handed fewer than two geographies.data in select() and
rename()cancensus,
tidycensus and readxl packages now check that
they are installed and give an actionable message instead of failing
deep in the calltongfen_aggregate only
looking at the first geographic identifier when matching over
severaloptions(tongfen.cache_path=...) workscheck_tongfen_areas and
aggregate_correspondencestongfen_estimate_ca_census function for new
CensusMapper endpoint, tying into new {cancensus} functionality. ##
Minor changestongfen_estimate for finer
controlThese binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.