R/not.integer.R

Defines functions not.integer

Documented in not.integer

#' Not an integer
#'
#' Opposite of is.integer(). Check if entry is not an integer
#'
#' @param x vector entry
#' @return a boolean value to indicate if entry is an integer
#' @examples
#' is.integer(78L) #TRUE
#' not.integer(78L) #FALSE
#'
#' not.integer(23.43) # TRUE
#' not.integer(45L) # FALSE
#' if(not.integer(4L)) message("yes") # NULL
#'
#' @export

not.integer <- function(x)!{
  is.integer(x)
}

Try the quickcode package in your browser

Any scripts or data that you put into this service are public.

quickcode documentation built on April 11, 2025, 5:49 p.m.