View source: R/utils-typechecks.R
is_integerlike | R Documentation |
This function checks if a numeric value is and integer-like scalar, meaning it is numeric and its length is 1.
is_integerlike(x)
x |
Numeric value to check. |
TRUE
if x
is integer-like, otherwise FALSE
.
is_proportion
, is_count
,
validate_proportion
, validate_count
is_integerlike(3) # TRUE
is_integerlike(3.5) # FALSE
is_integerlike("3") # FALSE
is_integerlike(c(1, 2)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.