occ_daily_volume: Daily volumes by date and API

Description Usage Arguments Examples

View source: R/daily-data.R

Description

Daily volumes by date and API

Usage

1
occ_daily_volume(api.filter = NULL, exclude = FALSE, after = NULL, ...)

Arguments

api.filter

character; API numbers to filter

exclude

logical; should api.filter by exclusionary? The default (FALSE) will return only API numbers specified in api.filter.

after

date or object coercible to date; A non-null entry with return results after the specified; otherwise all data are returned.

...

additional paramters sent to dcast

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
#
# Plot total injection across Oklahoma
# (complete since early 2015)
#

require(dplyr)

dv <- occ_daily_volume()
# each API gets a column in the result
# and date is given in `Report.Date`
head(names(dv))

Dates <- dv$Report.Date
Vols <- dplyr::select(dv,-Report.Date)

plot(Dates, rowSums(Vols, na.rm=TRUE), type='l')


## End(Not run)

abarbour/occr documentation built on March 22, 2018, 10:11 p.m.