validateDate | R Documentation |
Tests whether a string can be interpreted as given type
validateDate(inputValue, expectedFormat = "%Y-%m-%d",
secondaryFormat = "%m/%d/%Y", errorEnv = NULL)
validateCharacter(inputValue, errorEnv = NULL)
validateNumeric(inputValue, errorEnv = NULL)
inputValue |
value that should able to become the type, usually a string |
expectedFormat |
a format.POSIXct that dates should be formatted as |
secondaryFormat |
a format.POSIXct that will not throw warnings, and is tested second |
errorEnv |
environment where errorList is stored |
NA will be allowed through, use other functions to check for NA
validateDate
a string date in the format expectedFormat
validateCharacter
a string
validateNumeric
a numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.