write_facility: Write NSSP BioSense Platform Data Quality Summary Reports for...

Description Usage Arguments

View source: R/write_facility.R

Description

This function is a lightweight version of the 'write_reports' function. It will generate summary and example workbooks, but only for one specified facility. The first summary workbook shows percents and counts of nulls and invalids, while the examples workbook generates de tailed information on records and visits that are null or invalid.

Usage

1
2
write_facility(username, password, table, mft, start, end, facility,
  directory = "", nexamples = 0)

Arguments

username

Your BioSense username, as a string. This is the same username you may use to log into RStudio or Adminer.

password

Your BioSense password, as a string. This is the same password you may use to log into RStudio or Adminer.

table

The table that you want to retrieve the data from, as a string.

mft

The MFT (master facilities table) from where the facility name will be retrieved, as a string.

start

The start date time that you wish to begin pulling data from, as a string.

end

The end data time that you wish to stop pulling data from, as a string.

facility

The C_Biosense_Facility_ID for the facility that you wish to generate and write the report for.

directory

The directory where you would like to write the reports to (i.e., "~/Documents/MyReports"), as a string.

nexamples

An integer number of examples you would like for each type of invalid or null field in the examples workbooks for each facility. This defaults to 0, which will not generate these example workbooks.


markhwhiteii/biosensequality documentation built on May 14, 2019, 7:43 a.m.