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/sf documentation built on June 8, 2024, 4:23 p.m.