R/hud_check_for_digits_only.R

Defines functions digits_only

#' @name digits_only
#' @title All Digits In Character vector
#' @description Detect whether character vector contains only numbers.
#' @param x A character vector.
#' @returns TRUE if character vector is all digits, FALSE if not.
#' @noRd
#' @noMd
digits_only <- function(x) !grepl("\\D", x)
etam4260/rhud documentation built on Nov. 12, 2022, 2:53 a.m.