1
1
<!-- README.md is generated from README.Rmd. Please edit that file -->
2
2
3
- tidyhydat <img src =" man/figures/tidyhydat.png " align =" right " />
4
- ===============================================================
3
+ # tidyhydat <img src =" man/figures/tidyhydat.png " align =" right " />
5
4
6
5
[ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
7
6
[ ](https://cran.r-project.
19
18
[ ![ DOI] ( http://joss.theoj.org/papers/10.21105/joss.00511/status.svg )] ( https://doi.org/10.21105/joss.00511 )
20
19
[ ![ DOI] ( https://zenodo.org/badge/100978874.svg )] ( https://zenodo.org/badge/latestdoi/100978874 )
21
20
22
- Project Status
23
- --------------
21
+ ## Project Status
24
22
25
23
This package is maintained by the Data Science and Analytics Branch of
26
24
the [ British Columbia Ministry of Citizens’
27
25
Services] ( https://www2.gov.bc.ca/gov/content/governments/organizational-structure/ministries-organizations/ministries/citizens-services ) .
28
26
29
- What does ` tidyhydat ` do?
30
- -------------------------
27
+ ## What does ` tidyhydat ` do?
31
28
32
29
- Provides functions (` hy_* ` ) that access hydrometric data from the
33
30
HYDAT database, a national archive of Canadian hydrometric data and
@@ -42,8 +39,7 @@ What does `tidyhydat` do?
42
39
data and returns a [ tibble] ( https://tibble.tidyverse.org/ ) of daily
43
40
flows.
44
41
45
- Installation
46
- ------------
42
+ ## Installation
47
43
48
44
You can install ` tidyhydat ` from CRAN:
49
45
@@ -54,11 +50,10 @@ install directly from the rOpenSci development server:
54
50
55
51
install.packages("tidyhydat", repos = "https://dev.ropensci.org")
56
52
57
- Usage
58
- -----
53
+ ## Usage
59
54
60
55
More documentation on ` tidyhydat ` can found at the rOpenSci doc page:
61
- <a href = " https://docs.ropensci.org/tidyhydat/ " class = " uri " > https://docs.ropensci.org/tidyhydat/ </ a >
56
+ < https://docs.ropensci.org/tidyhydat/ >
62
57
63
58
When you install ` tidyhydat ` , several other packages will be installed
64
59
as well. One of those packages, ` dplyr ` , is useful for data
@@ -93,22 +88,22 @@ the same conventions discussed above. Using `realtime_dd()` we can
93
88
easily select specific stations by supplying a station of interest:
94
89
95
90
realtime_dd(station_number = "08LG006")
96
- #> Queried on: 2020-10-06 20:15:00 (UTC)
97
- #> Date range: 2020-09-06 to 2020-10-06
98
- #> # A tibble: 17,532 x 8
99
- #> STATION_NUMBER PROV_TERR_STATE~ Date Parameter Value Grade
100
- #> <chr> <chr> <dttm> <chr> <dbl> <chr>
101
- #> 1 08LG006 BC 2020-09-06 08:00:00 Flow 4.01 <NA>
102
- #> 2 08LG006 BC 2020-09-06 08:05:00 Flow 4.01 <NA>
103
- #> 3 08LG006 BC 2020-09-06 08:10:00 Flow 3.98 <NA>
104
- #> 4 08LG006 BC 2020-09-06 08:15:00 Flow 3.98 <NA>
105
- #> 5 08LG006 BC 2020-09-06 08:20:00 Flow 3.98 <NA>
106
- #> 6 08LG006 BC 2020-09-06 08:25:00 Flow 3.98 <NA>
107
- #> 7 08LG006 BC 2020-09-06 08:30:00 Flow 3.98 <NA>
108
- #> 8 08LG006 BC 2020-09-06 08:35:00 Flow 3.98 <NA>
109
- #> 9 08LG006 BC 2020-09-06 08:40:00 Flow 3.98 <NA>
110
- #> 10 08LG006 BC 2020-09-06 08:45:00 Flow 3.98 <NA>
111
- #> # ... with 17,522 more rows, and 2 more variables: Symbol <chr>, Code <chr>
91
+ #> Queried on: 2021-05-17 19:11:24 (UTC)
92
+ #> Date range: 2021-04-17 to 2021-05-17
93
+ #> # A tibble: 17,502 x 8
94
+ #> STATION_NUMBER PROV_TERR_STATE_LOC Date Parameter Value Grade
95
+ #> <chr> <chr> <dttm> <chr> <dbl> <chr>
96
+ #> 1 08LG006 BC 2021-04-17 08:00:00 Flow 22.1 <NA>
97
+ #> 2 08LG006 BC 2021-04-17 08:05:00 Flow 22.1 <NA>
98
+ #> 3 08LG006 BC 2021-04-17 08:10:00 Flow 22.2 <NA>
99
+ #> 4 08LG006 BC 2021-04-17 08:15:00 Flow 22.2 <NA>
100
+ #> 5 08LG006 BC 2021-04-17 08:20:00 Flow 22.2 <NA>
101
+ #> 6 08LG006 BC 2021-04-17 08:25:00 Flow 22.2 <NA>
102
+ #> 7 08LG006 BC 2021-04-17 08:30:00 Flow 22.3 <NA>
103
+ #> 8 08LG006 BC 2021-04-17 08:35:00 Flow 22.3 <NA>
104
+ #> 9 08LG006 BC 2021-04-17 08:40:00 Flow 22.3 <NA>
105
+ #> 10 08LG006 BC 2021-04-17 08:45:00 Flow 22.4 <NA>
106
+ #> # ... with 17,492 more rows, and 2 more variables: Symbol <chr>, Code <chr>
112
107
113
108
### Plotting
114
109
@@ -128,16 +123,14 @@ and also historical data:
128
123
129
124
![ ] ( man/figures/README-unnamed-chunk-8-1.png )
130
125
131
- Getting Help or Reporting an Issue
132
- ----------------------------------
126
+ ## Getting Help or Reporting an Issue
133
127
134
128
To report bugs/issues/feature requests, please file an
135
129
[ issue] ( https://github.com/ropensci/tidyhydat/issues/ ) .
136
130
137
131
These are very welcome!
138
132
139
- How to Contribute
140
- -----------------
133
+ ## How to Contribute
141
134
142
135
If you would like to contribute to the package, please see our
143
136
[ CONTRIBUTING] ( https://github.com/ropensci/tidyhydat/blob/master/CONTRIBUTING.md )
@@ -147,25 +140,23 @@ Please note that this project is released with a [Contributor Code of
147
140
Conduct] ( https://github.com/ropensci/tidyhydat/blob/master/CODE_OF_CONDUCT.md ) .
148
141
By participating in this project you agree to abide by its terms.
149
142
150
- Citation
151
- --------
143
+ ## Citation
152
144
153
145
Get citation information for ` tidyhydat ` in R by running:
154
146
155
147
citation("tidyhydat")
156
148
157
149
[ ![ ropensci\_ footer] ( https://ropensci.org/public_images/ropensci_footer.png )] ( https://ropensci.org )
158
150
159
- License
160
- -------
151
+ ## License
161
152
162
153
Copyright 2017 Province of British Columbia
163
154
164
155
Licensed under the Apache License, Version 2.0 (the “License”); you may
165
156
not use this file except in compliance with the License. You may obtain
166
157
a copy of the License at
167
158
168
- <a href = " http ://www.apache.org/licenses/LICENSE-2.0" class = " uri " > http://www.apache.org/licenses/LICENSE-2.0 </ a >
159
+ < https ://www.apache.org/licenses/LICENSE-2.0>
169
160
170
161
Unless required by applicable law or agreed to in writing, software
171
162
distributed under the License is distributed on an “AS IS” BASIS,
0 commit comments