diff --git a/DESCRIPTION b/DESCRIPTION index 97b8f68..3934771 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: teckfish Title: R Tools for Teck Fish and Aquatic Sciences Projects -Version: 0.0.1.9003 +Version: 0.1.0 Authors@R: c( person("Joe", "Thorley", , "joe@poissonconsulting.ca", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7683-4592")), diff --git a/NEWS.md b/NEWS.md index 975b60a..693adf8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,33 +1,25 @@ -# teckfish 0.0.1.9003 +# teckfish 0.1.0 -- Return `NA` if less than 90 values after trimming trailing `NA`s. +## Additions -- Always trim missing values in tails. +- Added `interpolate_numeric_vector()` function to fill in missing values using linear interpolation. +- Added `freshwaterfish` data from `fishbc` package to provide British Columbian and Alberta fish codes as well as taxonomy and conservation status. +## Modifications -# teckfish 0.0.1.9002 +### `gsdd_cf()` Function -- Added `interpolate_numeric_vector()` to fill in missing values using linear interpolation. - - -# teckfish 0.0.1.9001 - -- `gsdd_cf()` now requires at least 90 values. -- Renamed "left" and "right" truncation to "start" and "end" truncation. -- Added `na_trim = TRUE` argument to `gsdd_cf()` to trim leading or trailing missing values. -- `gsdd_cf()` by default now returns the sum of all the growing seasons within the period of interest as this is expected to be the most reliable predictor of growth. -- Added `pick` argument to specify whether to pick the "biggest", "smallest", "longest", "shortest", "first" or "last" 'season' or "all" 'seasons'. - -# teckfish 0.0.1.9000 - -- `gsdd_cf()` now requires at least 180 values and returns `NA_real` if any values are `NA_real`. -- Added `fishbc::freshwaterfish` and `fishbc::fbc_common_name` data. +- Uses the longest sequence on non-missing values, which must be at least 184 elements (otherwise returns `NA`), to calculate the Growing Season Degree Days. +- Returns the sum of the Growing Season Degree Days for all the growing 'seasons' although the user can use the `pick` argument to specify whether to instead return the GSDD value for the `"biggest"`, `"smallest"`, `"longest"`, `"shortest"`, `"first"` or `"last"` 'season' within the sequence. +- `ignore_truncation` argument of `gssd_cf()` now accepts `"start"` and `"end"` instead of +`"left"` and `"right"`. +- Replaced `quiet = FALSE` argument with `messages = TRUE`. # teckfish 0.0.1 -- Added `gsdd_cf()` function. (#5) which implements Growing Season Degree Days +- Added `gsdd_cf()` function which implements Growing Season Degree Days algorithm as described by Coleman and Fausch (2007) - Added `classify_water_temp_data()` function to classify raw water temperature data as `reasonable`, `questionable`, or `unreasonable` based on