R/count_vowels.R

Defines functions count_vowels

Documented in count_vowels

#' ruf
#' @name count_vowels
#' @export
#' @param str class: string
#' @import stringr
#' @examples
#' count_vowels(str)
count_vowels <- function(str) {
  dtv <- ruf::is_data_tag_valid(str, tag_name="consonant_vowel_string", tag_value=T)
  if(dtv) {
    stringr::str_count(str, "V")
  }
}
nelsonroque/ruf documentation built on March 11, 2021, 2:53 p.m.