R/numbers_only.R

Defines functions numbers_only

Documented in numbers_only

#' Check that string is only numbers
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
numbers_only <- function(x){
  return(!grepl("\\D", x))
}
pietroreggiani/RmyTools documentation built on May 23, 2022, 5:24 p.m.