convert_to_date_with_trycatch {malariaAtlas} | R Documentation |
Tries to convert character into a Date object. If this fails, the program will be stopped and an error message shown to the user
Description
Tries to convert character into a Date object. If this fails, the program will be stopped and an error message shown to the user
Usage
convert_to_date_with_trycatch(input, input_name)
Arguments
input |
A character of length 1, to convert into a Date object. |
input_name |
A character string that reflects the name of the input (to inform the user). |
Value
Will return input as a Date is it can be converted into one. Else will stop the program and issue the user with an error message.
[Package malariaAtlas version 1.6.3 Index]