.check_fmt_string {cards} | R Documentation |
A function that checks a single string for consistency. String must begin with 'x' and only consist of x's, a single period or none, and may end with a percent symbol.
If string is consistent, TRUE
is returned. Otherwise an error.
.check_fmt_string(x, variable, stat_name)
x |
( |
variable |
( |
stat_name |
( |
a logical
cards:::.check_fmt_string("xx.x") # TRUE
cards:::.check_fmt_string("xx.x%") # TRUE