R/text_clean.ending.R

Defines functions text_clean.ending

Documented in text_clean.ending

#' text_clean.ending
#'
#'
#' @param strng It's a string

#' @keywords
#' @export
#' @examples
#' @importFrom magrittr %>%
#'

text_clean.ending<-function(strng) {
  if (substr(strng,nchar(strng),nchar(strng))%in%c(":",";","/","\\")) substr(strng,1,nchar(strng)-1)
}
senickel/sebstoolkit2 documentation built on May 26, 2019, 4:30 a.m.