View source: R/fun.Stats.File.R
fun.Stats.File | R Documentation |
Subfunction for generating statistical summaries. Needs to be called from ContDataQC(). Requires doBy() and survival() [required by doBy] Calculates statistics on input data and saves to a new csv. Plots are saved as PDF. The 'file' version works on a single (or vector) of files.
fun.Stats.File(
fun.myFile,
fun.myDir.import = getwd(),
fun.myDir.export = getwd(),
fun.myReport.format,
fun.myReport.Dir
)
fun.myFile |
Single (or vector of) file name(s). |
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. |
Returns a csv into the specified export directory with additional columns for calculated statistics. And a PDF of summary plots by different time periods.
myFile <- "QC_test2_Aw_20130426_20130725.csv"
#myFile <- c("QC_test2_Aw_20130426_20130725.csv"
# , "QC_test2_Aw_20130725_20131015.csv", "QC_test2_Aw_20140901_20140930.csv")
myDir.import <- file.path(getwd(),"Data2_QC")
myDir.export <- file.path(getwd(),"Data4_Stats")
fun.Stats.File(myFile, myDir.import, myDir.export)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.