This release provides new functionality with regard to ionic ratios and plotting them in a Van Wirdum diagram (#114):
- New function
calculate_ir()to compute the ionic ratio. - New function
ggplot_vanwirdum_background()to get a Van Wirdum diagram as ggplot object (without custom data), to which data layers can be added by the user. - New vignette on plotting chemistry data:
vignette("v230_chem_plots").
get_locs()now substitutes filterlength values of 0 m by 0.3 m (#108). Before, this was only done for missing filterlengths.- Harden
get_chem()with regard to the iron / conductivity ratio calculation (used by theen_fecond_thresholdargument) (#122):- Limit the calculation to the requested locations.
- Set as missing if conductivity is set as zero in the data warehouse, and present a warning in case this occurs.
- Apply tidyverse code style (#119).
- Various maintenance.
- Move package {KSgeneral} to
Suggests(#103). This avoids package breaking when {KSgeneral} is not available on CRAN. For the moment not taking further measures to protect against it, as the package is currently back on CRAN.
- Fixed non-working
get_xg3()andget_chem()for data frame input, by avoiding the currently defunctdbplyr::db_drop_table()(#89, 08bc66d). - Various maintenance (#81, #86, #87, #88, c382499).
- This release has been made compatible with
dbplyr2.0.0 (on CRAN); thedbplyrfork is not needed anymore (e66e58f, #74).- Follow the installation procedure on the homepage (readme) to upgrade.
- Lazy results of
get_locs(),get_xg3()andget_chem()are not sorted anymore. Sorting is done in tibbles only, i.e. ifcollect = TRUE. For more information, consult the Note added in the documentation of these functions.
- Fix broken
selectlocs_xg3()andselectlocs_chem()(#73). - Fix
get_locs()error when no locations remain after spatial masking (c96421e). - Fix
get_locs()error whenobswell_aggr = "mean"(#80). - Adopt further
inbodbfunctionality (#75):- re-export its
dbDisconnect(); - transfer handling of character encoding to
inbodb.
- re-export its
- Improve documentation and
pkgdownwebsite (#76, #77, 3986b4e).
- New function
cluster_locs()to spatially cluster locations (well clusters) (#39) - More fun with
get_locs():- optionally allow groundwater piezometers with missing
filterdepth(argumentfilterdepth_na) - optionally replace missing
filterdepthvalues in a conservative way, based ontubelength(argumentfilterdepth_guess, #44) - return eight more observation well attributes beside
filterdepth(#44) - four methods are available to aggregate observation well attributes per location (argument
obswell_aggr, #44) - applying a spatial mask is now a little speedier (#57)
- optionally allow groundwater piezometers with missing
as_points()andget_locs()return a warning when duplicated coordinates occur in their local result (#51, thanks @w-jan)- Package dependency moved from inborutils to inbodb: this is a change within
connect_watina()which should not affect its behaviour and which reduces overall package dependencies.
Further, a number of smaller fixes and enhancements were made.
- Redo fix
get_locs(): calculation ofsoilsurf_ost(#43)
- Bugfix in
get_locs(): calculation ofsoilsurf_ost(#42)
- Bugfix in
convertdf_enc()(#34) - Some small documentation improvements
- Documentation is now generated by the newer
roxygen2version7.0.2, resulting in a better layout of function arguments in the 'usage' section.
- On Windows, the functions now convert 'weird' characters from the data warehouse to proper UTF-8.
- Bugfix (#29) in
get_locs()regarding the default implementation of theloc_validityargument.
- Fixed bug in some hyperlinks in function documentation, affecting the installation process on Windows (warnings were thrown).
- Several functions have been added to query and process chemical data.
- Three vignettes have been added.
- Improved various existing functionalities from version 0.1.0, based on user's feedback.