View source: R/verify_input_data.R
verify_input_data | R Documentation |
This function is called by create_scenario to check input dataframes to make sure they're compatible with scenarioMaker.
It checks for the following:
* myData is a data frame
* myData is not empty
* myData has all of the columns in columnNames
* the columns named in factorName are factors
verify_input_data(myData, columnNames, factorNames, stopOnFail = TRUE)
myData |
object to be checked for correct format |
columnNames |
column names that must be in myData |
factorNames |
columns in myData that must be factors |
stopOnFail |
Default = TRUE When TRUE, function STOPS (bombs out) when dataframe fails a test and prints message about why. When FALSE, function simply returns FALSE. |
Bolean. TRUE if input is in correct format, FALSE if input is in incorrect form and stopOnFail=FALSE. If stopOnFail=TRUE, then this will bomb out and return nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.