Here is an example:
CTNote::count_matches(use_pattern = c("-----", "o-o--"), match_is = "-")
This returns the (somewhat confusing) error
Error in if (pattern_trim_length == 0) { : the condition has length > 1
We need to
- vectorise all the functions, or
- add a better error message and function documentation AND add calls to
dplyr::rowwise() in the examples