is_valid_separator {RJalaliDate} | R Documentation |
Checks whether a separator can be among the set of valid separators
is_valid_separator(separator)
separator |
character |
list of validation result and related message
is_valid_separator("+")
# $result
# [1] TRUE
#
# $message
# [1] ""
is_valid_separator("+/")
# $result
# [1] FALSE
#
# $message
# [1] "The number of character of the separator must be 0 or 1!"