grabclean: Cleaning grab data

View source: R/grabclean.R

grabcleanR Documentation

Cleaning grab data

Description

if column names do not match up make sure there is only one "date" column

Usage

grabclean(yearmon, tofile = FALSE, fdir = getOption("fdir"))

Arguments

yearmon

numeric survey date in yyyymm format

tofile

logical save output to file

fdir

character file path to local data directory

Details

If streaming data does not exist for a particular data/time pull averages for the previous minute (if data exists).

Examples

## Not run: 
res <- grabclean(yearmon = 201402, tofile = FALSE)
res <- grabclean(yearmon = 200808, tofile = FALSE)
res <- grabclean(yearmon = 201212, tofile = FALSE)
res <- grabclean(yearmon = 201007, tofile = FALSE)
res <- grabclean(yearmon = 201004, tofile = FALSE)

## End(Not run)


jsta/DataflowR documentation built on Sept. 27, 2022, 11:13 p.m.