Skip to content

Commit ff1f568

Browse files
committed
docs: spelling and grammar
1 parent 4e94b4c commit ff1f568

6 files changed

Lines changed: 32 additions & 28 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ Please note that the tidyhydro project is released with a [Contributor Code of C
6161

6262
-[ ] MSPE - model standard percentage error log and nonlog [@rasmussenGuidelinesProceduresComputing2009, p. 13]
6363

64-
-[ ] RMSE
64+
-[x] RMSE
65+
66+
-[ ] Coefficient of Variation

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Miscellaneous
77

8-
- Added structure. Functions are now groupped into two categories: regression and GOF
8+
- Added structure. Functions are now grouped into two categories: regression and GOF
99

1010
# tidyhydro 0.1.1
1111

@@ -16,8 +16,8 @@
1616

1717
## Bug fixes
1818

19-
- Improved documenation by switching from `\url` to `\doi`
20-
- Removed unicode characters α, β
19+
- Improved documentation by switching from `\url` to `\doi`
20+
- Removed unicode characters
2121

2222
## Miscellaneous
2323

R/data.R

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#' Mean Daily Water Discharge At Avacha River (Elizovo City)
1+
#' Mean daily water discharge at the Avacha River (Elizovo City)
22
#' @keywords data
33
#'
44
#' @details These data contain the measured (`obs`) mean daily water discharge
5-
#' values (in \eqn{m^3/s}) at the Avacha River -- Elizovo City state gauging
6-
#' station for the 2022 calendar year. They are accompanied by the GloFAS v4.0
5+
#' values (in \eqn{m^3/s}) at the Avacha River streamgage near Elizovo City,
6+
#' Russia, 2022 calendar year. They are accompanied by the GloFAS v4.0
77
#' reanalysis water discharge values for the last 24 hours (`sim`), derived
88
#' from
99
#' \url{https://ewds.climate.copernicus.eu/datasets/cems-glofas-historical}.
@@ -17,8 +17,9 @@
1717
#' @return \item{avacha}{a data frame}
1818
#'
1919
#' @source
20-
#' * \url{https://gmvo.skniivh.ru/}
21-
#' * \url{https://ewds.climate.copernicus.eu/datasets/cems-glofas-historical}
20+
#' * observed water discharge \url{https://gmvo.skniivh.ru/}
21+
#' * simulated water discharge
22+
#' \url{https://ewds.climate.copernicus.eu/datasets/cems-glofas-historical}
2223
#'
2324
#' @keywords datasets
2425
#' @examples

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ requireNamespace("bench", quietly = TRUE)
3535

3636
The `tidyhydro` package provides a set of commonly used metrics in hydrology (such as _NSE_, _KGE_, _pBIAS_) for use within a [`tidymodels`](https://www.tidymodels.org/) infrastructure. Originally inspired by the [`yardstick`](https://github.com/tidymodels/yardstick/tree/main) and [`hydroGOF`](https://github.com/hzambran/hydroGOF) packages, this library is mainly written in C++ and provides a very quick estimation of desired goodness-of-fit criteria.
3737

38-
Additionally, you'll find here a C++ implementation of lesser-known yet powerful metrics used in reports from the United States Geological Survey (USGS) and the National Environmental Monitoring Standards (NEMS) guidelines. Examples include _PRESS_ (Prediction Error Sum of Squares), _SFE_ (Standard Factorial Error), and _MSPE_ (Model Standard Percentage Error) and others. Based on the equations from _Helsel et al._ ([2020](https://pubs.usgs.gov/publication/tm4A3)), _Rasmunsen et al._ ([2008](https://pubs.usgs.gov/tm/tm3c4/)), _Hicks et al._ ([2020](https://www.nems.org.nz/documents/suspended-sediment)) and etc. (see documentation for details).
38+
Additionally, you'll find here a C++ implementation of lesser-known yet powerful metrics and coefficients recommended in the United States Geological Survey (USGS) and the National Environmental Monitoring Standards (NEMS) guidelines. Examples include _PRESS_ (Prediction Error Sum of Squares), _SFE_ (Standard Factorial Error), _MSPE_ (Model Standard Percentage Error) and others. Based on the equations from _Helsel et al._ ([2020](https://pubs.usgs.gov/publication/tm4A3)), _Rasmunsen et al._ ([2008](https://pubs.usgs.gov/tm/tm3c4/)), _Hicks et al._ ([2020](https://www.nems.org.nz/documents/suspended-sediment)) and etc. (see documentation for details).
3939

4040
## Example
4141
The `tidyhydro` package follows the philosophy of [`yardstick`](https://github.com/tidymodels/yardstick/tree/main) and provides S3 class methods for vectors and data frames. For example, one can estimate `KGE`, `NSE` or `pBIAS` for a data frame like this:

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ library is mainly written in C++ and provides a very quick estimation of
2626
desired goodness-of-fit criteria.
2727

2828
Additionally, you’ll find here a C++ implementation of lesser-known yet
29-
powerful metrics used in reports from the United States Geological
30-
Survey (USGS) and the National Environmental Monitoring Standards (NEMS)
31-
guidelines. Examples include *PRESS* (Prediction Error Sum of Squares),
32-
*SFE* (Standard Factorial Error), and *MSPE* (Model Standard Percentage
33-
Error) and others. Based on the equations from *Helsel et al.*
34-
([2020](https://pubs.usgs.gov/publication/tm4A3)), *Rasmunsen et al.*
35-
([2008](https://pubs.usgs.gov/tm/tm3c4/)), *Hicks et al.*
36-
([2020](https://www.nems.org.nz/documents/suspended-sediment)) and etc.
37-
(see documentation for details).
29+
powerful metrics and coefficients recommended in the United States
30+
Geological Survey (USGS) and the National Environmental Monitoring
31+
Standards (NEMS) guidelines. Examples include *PRESS* (Prediction Error
32+
Sum of Squares), *SFE* (Standard Factorial Error), *MSPE* (Model
33+
Standard Percentage Error) and others. Based on the equations from
34+
*Helsel et al.* ([2020](https://pubs.usgs.gov/publication/tm4A3)),
35+
*Rasmunsen et al.* ([2008](https://pubs.usgs.gov/tm/tm3c4/)), *Hicks et
36+
al.* ([2020](https://www.nems.org.nz/documents/suspended-sediment)) and
37+
etc. (see documentation for details).
3838

3939
## Example
4040

@@ -128,9 +128,9 @@ bench::mark(
128128
#> # A tibble: 3 × 6
129129
#> expression min median `itr/sec` mem_alloc `gc/sec`
130130
#> <bch:expr> <dbl> <dbl> <dbl> <dbl> <dbl>
131-
#> 1 tidyhydro 1 1 22.7 NaN NaN
132-
#> 2 hydroGOF 15.2 19.1 1 Inf Inf
133-
#> 3 baseR 8.66 10.6 2.44 Inf Inf
131+
#> 1 tidyhydro 1 1 30.2 NaN NaN
132+
#> 2 hydroGOF 14.8 20.0 1 Inf Inf
133+
#> 3 baseR 8.44 10.3 2.55 Inf Inf
134134
```
135135

136136
## Code of Conduct

man/avacha.Rd

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)