R/RemoveLastWord.R

Defines functions RemoveLastWord

Documented in RemoveLastWord

################################################################################
#' Remove Last Word Function
#'
#' This function allows you to remove the last word in a string
#' @param text Takes a string as input
#' @keywords Last Word
#' @export
#' @examples
#' RemoveLastWord()

RemoveLastWord <- function(text) {
        temp_text <- text
        temp_text <- gsub("\\s*\\w*$", "", temp_text)
}
################################################################################
ykashou92/SimpleRegex documentation built on May 4, 2019, 5:30 p.m.