powered by
Valid linkages are in the form of "a1-2", "b1-4", "a?-1", etc. Specifically, the pattern is xy-z:
xy-z
x: the anomer, either "a", "b", or "?".
x
y: the first position, either "1", "2" or "?".
y
z: the second position, either a 1-9 digit or "?". Can also be multiple positions separated by "/", e.g. "1/2/3". "?" could not be used with "/".
z
valid_linkages(linkages)
A logical vector.
A character vector of linkages.
# Valid linkages valid_linkages(c("a1-2", "?1-4", "a?-1", "b?-?", "??-?", "a1/2-3")) # Invalid linkages valid_linkages(c("a1-2/?", "1-4", "a/b1-2", "c1-2", "a9-1"))
Run the code above in your browser using DataLab