.check_fmt_string {cards} | R Documentation |
Check 'xx' Format Structure
Description
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.
Usage
.check_fmt_string(x, variable, stat_name)
Arguments
x |
( |
variable |
( |
stat_name |
( |
Value
a logical
Examples
cards:::.check_fmt_string("xx.x") # TRUE
cards:::.check_fmt_string("xx.x%") # TRUE
[Package cards version 0.6.1 Index]