- Removed search_data_lake() function. Added separate round() function to overwrite base round as doesn't behave how expected.
- Updated app templates.
- reversed pal_snz_alpha2 and pal_ea19_alpha2.
- Updated shiny templates.
- minor tweak to shiny templates.
- add shiny templates to er.helpers.
- update gridify_mb_data fun.
- add nz sf object.
- add gridify_mb_data functions, so that it can be installed.
- remove simplevis and gridify_mb_data functions, so that it can be installed.
- Updated read_from_datalake for versioning.
- Updated get_metadata function.
- Added add_unused_levels function to assist with fixing a plotly legend bug.
- Added readr library to read_csv function in read_from_datalake.
- Added nz_region sf object
- Removed _na_inf functions.
- Updated read_csv_datalake to use readr::write_excel_csv, so that macrons are preserved.
- Bug fix: updated ggplot functions per updates to simplevis.
- New feature: added a4 dimensions.
- Bug fix: corrected ordering of y variable in ggplot hbar functions.
- New feature: added ggplot hbar functions that work with x_na_inf for APS data.
- New feature: added read_from_datalake, get_metadata and write_rds_datalake functions.
- Bug fix: ungrouped output from gridify_mb_data, so that an sf object is returned.
- New feature: updated NZTCS pals.
- New feature: added 2 new pals.
- New feature: expand gridify_mb_data function to support the gridifying of more than 1 linecode.
- New feature: add gridify_mb_data function to create a grid from meshblock data.
- Bug fix: fixed read_excel_datalake.
- New feature: add an NZ hexagonal grid sf object.
- New feature: added read_excel_datalake function.
- New feature: added the sankey_build_data function to support networkD3 sankey charts.
- Improvement: darkened the shade of grey in pal_point_trend3 and pal_point_trend5.
- Bug fix: aggregation functions now return NA as expected when all values are missing. Even if it passes other requirements.
- New feature: Added all palettes from simplevis, plus a signed square root trans function scales.
- New feature: Added a signed square root transformation function scale.
- Improvement: Order of season levels changed such that the annual category goes before the other seasons.
- New feature: Added
linear_model()
as another option for trend estimation - Breaking changes: The slope calculated using
sen_slope()
is now returned in a data frame with a column called "slope" instead of "sen_slope". This is for consistency with the slope calculated usinglinear_model()
- New feature: Added
sum_with_criteria()
to collection of aggregation functions - Bug fix: Fixed a bug in
aggregate_with_criteria()
that meant that the mean was calculated regardless of the function indicated
- Bug fix: Fixed bug in precipitation functions that prevented them from being calculated properly.
- Improvement:
search_data_lake()
has been deprecated in favour ofsearch_datalake()
to be consistent with naming - Improvement:
search_datalake()
now uses AND instead of OR when filtering keys. - Improvement:
search_datalake()
now returns a tibble - Improvement: Using MIT License
- Bug fix: Fix documentation warning generated when installing the package.
- Bug fix: Functions used to calculate rainfall indices use wet days only (days > 1mm precipitation by default).
- Improvement: Deprecated
get_reference_rainfall()
andrainfall_above_reference()
in favour ofget_reference_precipitation()
andprecipitation_above_reference()
in order to adopt WMO names.
- Improvement: We use exclusion criteria on missing values to calculate anoamliesS
- Bug fix: When aggregation criteria were equal to 1 it correctly assume they are given as proportions
- Improvement: Aggregation with criteria functions now have default values for maximum number of missing values and maximum number of consecutive missing values.
- New feature: A set of functions (
aggragate_with_criteria()
) to calculate aggregations using criteria for missing data. - New feature: A function to print the range of a numeric vector in a "pretty way".
- Bug fix: When searching for a key in the data lake it looks for it in all the keys, not the first 1000
- Bug fix: Return a p-value of 0.5 when all values are tied in Mann-Kendall test
- Bug fix: Corrected spelling of Sen's slope
- Bug fix: Trend functions
sen_slope()
andmann_kendall()
return their method regardless of wether the trend estimation is successful or not.
- Improvement: Trend functions
sen_slope()
andmann_kendall()
return NA if there are NAs in the input data.
- Bug fix: Correcting spelling of autumn in
order_season_levels()
- New feature: Added
order_season_levels()
to automatically order season as a factor for pretty plotting and data standarisation - Bug fix: Corrected example that were not working in
round_preserve_sum()
- Bug fix:
er.helpers:::likelihood_terms
internal data was not being saved properly.
- New feature: Added
simplifY_likelihood_levels()
which collapses levels in likelihood category factors - New feature: Added
round_preserve_sum()
which rounds a set of number while maintaining the total. Used, for example, so that rounded percentages still add to 100.
- New feature:Added
get_likelihood_category()
which given a probabiliy p it returns the term used to describe the category this probability belongs to. It also ensures the levels of the output are ordered appropietly. - New feature:Added
order_likelihood_levels()
which orders the levels of a likelihood category factor - New feature:Added the datasets
ipcc_likelihood_scale
andstatsnz_likelihood_scale
which contain the Intergovernmental Panel on Climate Change (IPCC) and the Stats NZ likelihood scales respectively - Improvement: Started using automatic package testing before things get out of hand
- New feature: Added functions to calculate rainfall intensity metrics
- New feature: Added function to calculate annual anomalies
- Improvement: Trend functions warn when number of values is small or when all values are tied in the data
- New feature: Added function search for object keys in a data lake
- Bug fix: Reading data frames with a rowname X1 column doesn't fail anymore
- New feature: Added function to calculate trends using Sen's slope and Mann-Kendall test
- Improvement: When downloading a csv from the data lake remove the X1 column
- New feature: Added function to calculate the season of a date-time
- Improvement: Added contribution section to README
- Improvement: Improved documentation
- Improvement: Added CHANGELOG
- New feature: Retrieve any version of a csv in the data lake
- New feature: Check all the versions of an object in the data lake
- Improvement: Better documentation
- Improvement: Fix notes and warnings in package testing
- Functions to read and write files from data lake
- Function to launch shiny app in the background