forked from DOI-USGS/dataRetrieval
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
125 lines (83 loc) · 4.63 KB
/
Copy pathREADME.Rmd
File metadata and controls
125 lines (83 loc) · 4.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
title: "README"
output:
md_document:
variant: gfm
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
warning = FALSE,
message = FALSE,
fig.height = 7,
fig.width = 7)
```
# dataRetrieval <img src="man/figures/hex_logo.png" class="logo" alt="dataRetrieval" style="width:90px;height:auto;" align="right" />
[](https://github.com/USGS-R/dataRetrieval/actions)[](https://coveralls.io/github/USGS-R/dataRetrieval?branch=main) [](https://owi.usgs.gov/R/packages.html#core) [](https://cran.r-project.org/package=dataRetrieval) [](https://cran.r-project.org/package=dataRetrieval) [](https://cran.r-project.org/package=dataRetrieval)
Retrieval functions for USGS and EPA hydrologic and water quality data.
For complete tutorial information, see:
[https://usgs-r.github.io/dataRetrieval](https://usgs-r.github.io/dataRetrieval)
[https://owi.usgs.gov/R/dataRetrieval.html](https://owi.usgs.gov/R/dataRetrieval.html)
# Sample Workflow
## USGS
```{r workUSGS, eval=FALSE}
library(dataRetrieval)
# Choptank River near Greensboro, MD
siteNumber <- "01491000"
ChoptankInfo <- readNWISsite(siteNumber)
parameterCd <- "00060"
#Raw daily data:
rawDailyData <- readNWISdv(siteNumber,parameterCd,
"1980-01-01","2010-01-01")
# Sample data Nitrate:
parameterCd <- "00618"
qwData <- readNWISqw(siteNumber,parameterCd,
"1980-01-01","2010-01-01")
pCode <- readNWISpCode(parameterCd)
```
## Water Quality Portal
```{r WQP, eval=FALSE}
specificCond <- readWQPqw(siteNumbers = 'WIDNR_WQX-10032762',
parameterCd = 'Specific conductance',
startDate = '2011-05-01',
endDate = '2011-09-30')
```
## Network Linked Data Index
```{r NLDI, eval=FALSE}
features <- findNLDI(nwis = "01491000",
nav = "UT",
find = c('basin', 'wqp'))
```
# Reporting bugs
Please consider reporting bugs and asking questions on the Issues page:
[https://github.com/USGS-R/dataRetrieval/issues](https://github.com/USGS-R/dataRetrieval/issues)
Follow `@USGS_R` on Twitter for updates on USGS R packages:
[](https://twitter.com/USGS_R)
# Citing dataRetrieval
```{r cite, eval=TRUE}
citation(package = "dataRetrieval")
```
# Package Support
The Water Mission Area of the USGS supports the development and maintenance of `dataRetrieval`, and most likely further into the future. Resources are available primarily for maintenance and responding to user questions. Priorities on the development of new features are determined by the `dataRetrieval` development team.
[](https://www.usgs.gov/)
# Installation
To install the dataRetrieval package, you must be using R 3.0 or greater and run the following command:
```{r install1, eval=FALSE}
install.packages("dataRetrieval")
```
To get cutting-edge changes, install from GitHub using the `remotes` packages:
```{r install2, eval=FALSE}
library(remotes)
install_github("USGS-R/dataRetrieval",
build_opts = c("--no-resave-data", "--no-manual"),
build_vignettes = TRUE)
```
# Disclaimer
This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the [official USGS copyright policy](https://www2.usgs.gov/visual-id/credit_usgs.html#copyright)
Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.
This software is provided "AS IS."
[

](http://creativecommons.org/publicdomain/zero/1.0/)