Skip to content

Commit

Permalink
Bump version to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Feb 3, 2024
1 parent abdf19b commit 8987cd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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")),
Expand Down
32 changes: 12 additions & 20 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# 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
Expand Down

0 comments on commit 8987cd0

Please sign in to comment.