badDataSet: Hydrologic dataset with provisional and negative data.

Description Usage Format Details Source References Examples

Description

Daily mean streamflow for the Red River of the North at Fargo, North Dakota, streamgage 0504000, from January 1, 2000, to December 31, 2010. At the time these data were downloaded, some of the data were provisional and subject to revision, including a negative value. Red River of the North, North Dakota, 
  streamflow, in cubic feet per second, with a anomalous negative value.

Usage

1

Format

A dataframe containing 4,018 observations of daily mean streamflow. There are four variables shown in the following table.

Name Type Description
staid factor USGS Station identification number
val numeric Daily mean streamflow
dates Date Date of daily mean
qualcode factor Qualification code

Details

Streamflow data for U.S. Geological Survey streamgage 05054000, Red River of the North at Fargo, North Dakota, from January 1, 2000, to December 31, 2010, were downloaded, then 2,000 of the 4,018 daily values were randomly changed to missing values. At the time these data were downloaded, some of the data were provisional and subject to revision, including a negative value. For example purposes, the three smallest nonnegative values were changed to zero. Data for this site and specific dates have since been revised and approved. Definitions of the daily data qualification codes can be found at http://help.waterdata.usgs.gov/codes-and-parameters/daily-value-qualification-code-dv_rmk_cd (U.S. Geological Survey, 2011a).

Source

Imported from the USGS Daily Values Site Web Service http://waterservices.usgs.gov/rest/DV-Service.html (U.S. Geological Survey, 2011b) using the function importDVs, modified by replacing the three smallest values with zero. Data for this site and specific dates have since been revised and approved. The user would not be able to retrieve the same dataset from the USGS Daily Values Web Site Service.

References

U.S. Geological Survey, 2011a, Daily value qualification code (dv_rmk_cd): National Water Information System: Help System, accessed September 7, 2012, at http://help.waterdata.usgs.gov/codes-and-parameters/daily-value-qualification-code-dv_rmk_cd.

U.S. Geological Survey, 2011b, National Water Information System (NWISWeb): U.S. Geological Survey database, accessed November 2, 2011, at http://waterservices.usgs.gov/.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(exampleWaterData)
par(las=1, tck=0.02, mar=c(5,5,4,2), mex=1.2, cex.axis=0.75)
plot(badDataSet$dates, badDataSet$val, type="l",  
     ylab="Streamflow, in cubic feet per second", 
     xlab="", yaxs='i', xaxs='i', 
     xlim=c(as.Date("2000-01-01"), as.Date("2012-01-01")), 
     yaxt="n", col="blue")
axis(2, axTicks(2), format(axTicks(2), big.mark=",", scientific=FALSE))
title("Red River of the North at Fargo, North Dakota")
summary(badDataSet$val)

Example output

   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
-999999     523     923    1548    1900   29100 

waterData documentation built on May 2, 2019, 3:38 p.m.