is_valid_separator: check separator

View source: R/26_jalalidate_other_functions.R

is_valid_separatorR Documentation

check separator

Description

Checks whether a separator can be among the set of valid separators

Usage

is_valid_separator(separator)

Arguments

separator

character

Value

list of validation result and related message

Examples

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!"

RJalaliDate documentation built on Sept. 11, 2024, 8:26 p.m.