R/lookup.regex.R

#' lookup.regex
#' 
#' find a regexp by name
#' 
#' @param name character; the name given to the regex
#'
#' @return 
#' the regex with that name
#'
#' @seealso 
#'   \code{\link[base]{as.POSIXct}}
#'   
#' @examples 
#'   date.reader:::lookup.regex("mdy")
#'    
#' @include Constants.R

lookup.regex <- function(name) {
  name <- tolower(name)
  ret <- kFormats[[name]]
  if ( is.null(ret) ) {
    return(NA)
  }
  return(ret)
}
decisionpatterns/date.reader documentation built on May 15, 2019, 1:55 a.m.