All notable changes to this project will be documented in this file.
is_lonlat() helper function to check for valid
longitude/latitude ranges.summary() now allows to choose which trial to summarise
using the trial argument.priority parameter in the
"distance" thinning method. When multiple candidate points
have the same number of neighbors, the point with the lowest priority is
removed (#1).NA values in the priority
vector. These are treated as the lowest priority and trigger a
warning."grid" and "precision" methods now
handle priority ties by randomly selecting among equally
prioritized points.priority
parameter.s2 (>= 1.1.0) to Suggests in the
DESCRIPTION file.print() now reports both the number of trials run and
returned (#3).summary() no longer errors when s2 is
missing or too old. Now spatial coverage is set to NA with
a message (#3).Breaking changes. This version is backward-incompatible with earlier versions of GeoThinneR.
GeoThinned S3 class to represent
thinning results. All calls to thin_points() now return a
GeoThinned object instead of a list of logical vectors or
data frames.GeoThinned objects:
print() and summary() for inspection.plot() for visual comparison of thinned vs. original
data.largest() to retrieve the trial with the most retained
points.largest_index() to get the index of the best
trial.get_trial() to access specific trials.thin_points() to return structured output
and provide a more consistent user interface.local_kd_tree) and restricted search
(k_estimation).round_hash) now is
deprecated and has been removed from the package because of presenting
lower accuracy than the other distance-based methods.method now includes the
three main thinning strategies implemented in GeoThinneR for better
understanding and usability. These are: “distance”, “grid”, and
“precision”.search_type argument has been included for
distance-based thinning (method = "distance") to select
between the search algorithms (“brute”, “kd_tree”, “local_kd_tree”, and
“k_estimation”).n argument for the grid-based thinning
(method = "grid") now lets you specify the number of points
to retain per grid cell.long_col argument now is called
lon_col for consistency with the lat_col
argument.lon_col and `lat_col’) have
been changed from “decimalLongitude” and “decimalLatitude” to “lon” and
“lat”.rtree) and associated
functions related to R-Trees structure thinning method
(r_tree_thinning()).