Description Usage Arguments Value
Function verifies the content of a file which should contain a list of purchased items. It verifies if the file contains 2 reqauired columns ('Item', 'Count') and if the 'Count' column has numeric values.
1 | validatePurchaseItems(products, file = "discounts")
|
file |
path to the file with items to be purchased. |
Function returns a list with two elements. Frst element is a logical variable with the result of validation. If the validation fails the second element on the list is the message describing what was wrong. If the validation was successfull then the second element will be a data.frame with items to be purchased.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.