screenData | R Documentation |
Screens data to determine if a value is reported for each date by calendar or water year.
screenData(dates, values, type = "DV", year = "calendar", printit = TRUE)
dates |
the sequence of dates for each value in |
values |
the sequence of observations. |
type |
the frequency of |
year |
the type of year: "calendar" or "water," which begins on October 1 of the previous calendar year and ends on September 30. |
printit |
logical, if |
Missing values are permitted in either dates
or values
.
Those missing values are tallied in the completeness of record.
For type
= "DV," a matrix of the counts of missing values,
either coded as NA
or not in the dataset, for each month and each
year within the range of dates
.
For type
= "IV," a matrix of the counts of observed values
for each month and each year within the range of dates
.
This function is based on the screen program described in:
Rutledge, A.T., 2007, Program user guide for RECESS: at
https://water.usgs.gov/ogw/recess/UserManualRECESS.pdf.
library(smwrData) data(Q05078770) # this should indicate no missing values. with(Q05078770, screenData(DATES, FLOW)) # There should be missing values shown for: #months 10-12 in water year 2003 (October - December, 2002), and #months 1-9 of water year 2004. with(Q05078770, screenData(DATES, FLOW, year="w"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.