Description Usage Arguments Value Author(s) See Also Examples
Uses grep
to test if the object contains only numbers.
1 |
n |
An object to test. |
Returns a logical (TRUE or FALSE).
Originally from http://stackoverflow.com/a/3937820
1 2 3 4 5 | check_integer(1) # True
check_integer(1.2) # False
check_integer(1e10) # True
check_integer(1e-10) # False
check_integer('cheese') # Unsurprisingly: False
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.