| checkMicroFormat | R Documentation | 
checkMicroFormat checks that a given data frame meets certain criteria
and returns either a modified version of that data frame or an "empty" micro
evaluation frame with given dose data and column names. See the details
section below for more information.
checkMicroFormat(data, doseCol = getEctdColName("Dose"), mustHaveDose = FALSE)
data | 
 (Required) A data frame to check for validity  | 
doseCol | 
 (Optional) The "Dose" variable name within the supplied data. "DOSE" by default  | 
mustHaveDose | 
 (Optional) Should the "doseCol" variable necessarily be present? Default FALSE  | 
checkMicroFormat will perform a series of basic checks on data.
The checks for a valid structure are as follows: (1) data is a data
frame (2) data has at least 1 row (3) if "mustHaveDose" is TRUE,
data contains a "Dose" column (given by doseCol)
If any of these fail it will stop or return a NULL structure
A data frame as described above
Francisco Gochez
createEmptyMicro
  checkMicroFormat(data = data.frame(DOSE = 1:4),
  doseCol = "DOSE",
  mustHaveDose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.