R/check_integer.R

# From http://stackoverflow.com/a/3937820
check_integer <- function(n){
  !length(grep("[^[:digit:]]", format(n, scientific = FALSE)))
}
dpritchard/dgmisc documentation built on May 15, 2019, 1:50 p.m.