R/wordCount.R

Defines functions wordCount

Documented in wordCount

#' Function to Count the words in a string of text
#' 
#' @param x string of text to count
#' @export
#' 
#' 
wordCount <- function(x){
  length(strsplit(x, ' ')[[1]])
}
jpablo91/Pabloverse documentation built on April 11, 2024, 2:54 p.m.