View source: R/zfun.AggregateData.R
fun.AggregateData | R Documentation |
Subfunction for aggregating or splitting data files. Needs to be called from ContDataQC(). Combines or splits files based on given data range. Saves a new CSV in the export directory.
fun.AggregateData(
fun.myData.SiteID,
fun.myData.Type,
fun.myData.DateRange.Start,
fun.myData.DateRange.End,
fun.myDir.import = getwd(),
fun.myDir.export = getwd(),
fun.myReport.format,
fun.myReport.Dir,
fun.CreateReport = TRUE
)
fun.myData.SiteID |
Station/SiteID. |
fun.myData.Type |
data type; c("Air","Water","AW","Gage","AWG","AG","WG") |
fun.myData.DateRange.Start |
Start date for requested data. Format = YYYY-MM-DD. |
fun.myData.DateRange.End |
End date for requested data. Format = YYYY-MM-DD. |
fun.myDir.import |
Directory for import data. Default is current working directory. |
fun.myDir.export |
Directory for export data. Default is current working directory. |
fun.myReport.format |
Report format (docx or html). Default is specified in config.R (docx). Can be customized in config.R; ContData.env$myReport.Format. |
fun.myReport.Dir |
Report (rmd) template folder. Default is the package rmd folder. Can be customized in config.R; ContData.env$myReport.Dir. |
fun.CreateReport |
Boolean parameter to create reports or not. Default = TRUE. |
Returns a csv into the specified export directory with additional columns for calculated statistics.
#Not intended to be accessed indepedant of function ContDataQC().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.