R/len_xl.R

Defines functions len_xl

Documented in len_xl

#' len_xl function
#'
#' This function replicates the LEN function in Excel and is utilised for finding the length of character strings.
#'
#' @param text The text you want to calculate the length
#' @param ... Function forwarding to work with the base nchar method
#' @return An integer value calculating the length of the text passed
#' @export
#'
#' @examples
#' len_xl("Guess the length of me!")
#'
#'
len_xl <- function(text, ...) {
  nchar(text, ...)
}

Try the NHSDataDictionaRy package in your browser

Any scripts or data that you put into this service are public.

NHSDataDictionaRy documentation built on July 9, 2021, 5:08 p.m.