find_provisional: find_provisional. Find sediment parameter code records with...

Description Usage Arguments Details Value Examples

View source: R/find_provisional.R

Description

Find sediment parameter code records with DQI code of "S" and output record number files for QWDATA.

Usage

1
2
3
4
5
6
7
8
9
find_provisional(
  x,
  env.db = "01",
  qa.db = "02",
  pcodes = c("80154", "70331", "91157", "00530", "91145"),
  env.fileout = NULL,
  qa.fileout = NULL,
  view = TRUE
)

Arguments

x

A dataframe output from get_localNWIS

env.db

A character string containing the database number of environmental samples

qa.db

A character string containing the database number of QA samples

pcodes

A character vector of parameter codes of interest. Default pcodes are SSC (80154), Sand/silt break on suspended (70331), Suspended sediment mass(91157) TSS (00530), Bedload mass (91145)

env.fileout

A character string of the filename for environmental database records to be output. Default is NULL, if NULL a file will not be output.

qa.fileout

A character string of the filename for QA database records to be output. Default is NULL, if NULL a file will not be output.

view

A logical vector. If TRUE, view tabls will automatically open in RStudio for the environmental and QA database records.

Details

In RStudio the function will automatically show the environmental and QA database records in view tabs when view = TRUE, which is the default

Default pcodes are SSC (80154), Sand/silt break on suspended (70331), Suspended sediment mass(91157) TSS (00530), Bedload mass (91145)

Value

A list of dataframes for the environmental and QA database records. List names are env.provisional and qa.provisional

Examples

1
2
3
4
5
6
data('exampleData', package = "sedReview")
x <- exampleData
provisional.recs <- find_provisional(x, view = FALSE)
## Not run: 
view(provisional.recs$env.provisional)
## End(Not run)

USGS-R/sedReview documentation built on Aug. 24, 2020, 9 p.m.