# below is FALSE, because there is nothing NA-like in this vector
check_irregular(1:10)
# below is TRUE, because we're treating 99 as "NA-esque"
check_irregular(1:100, other = 99)
# below is TRUE, because of NA val
check_irregular(c(1:100, NA))
# below is TRUE, because nan.include is on (by default)
check_irregular(c(1:100, NaN), nan.include = TRUE)
# below is TRUE, because inf.include is on (by default)
check_irregular(c(1:100, Inf), inf.include = TRUE)
# below is TRUE, because inf.include is on (by default)
check_irregular(c(1:100, -Inf), inf.include = TRUE)
# below is FALSE, it's just letters
check_irregular(letters)
# below is TRUE - see default vals for arg special (function not case-sens)
check_irregular(c(letters, "NA"))
# below is TRUE - see default vals for arg special (function not case-sens)
check_irregular(c(letters, "NAN"))
# below is TRUE - see default vals for arg special (function not case-sens)
check_irregular(c(letters, "-iNf"))
# below is FALSE, search for irregular vals is not substring/regex-based
check_irregular(c(letters, "nan-iNf"))
Run the code above in your browser using DataLab