R/has_leading_punctuation.R

Defines functions has_leading_punct

Documented in has_leading_punct

#' Logical for strings that have 1 or more leading punctuation marks
#' @export

has_leading_punct <-
        function(strings) {
                output <- vector()
                for(string in strings) {
                        output <- c(output, grepl("^[[::punct::]]{1,}", string))
                }
                return(output)
        }
patelm9/centipede documentation built on Dec. 4, 2020, 3:09 a.m.