R/wc.R

Defines functions wc

Documented in wc

#' Word Count
#'
#' @param string Character. String for word count.
#'
#' @export
#'
wc <- function(string) {
  sapply(strsplit(string, " "), length)
}
sachserf/fsf documentation built on June 7, 2024, 11 a.m.