is_numeric | R Documentation |
A more advanced version of is.numeric
. It wraps the base-r function, but allows for recursive checking inside lists and hence data.frames as well.
is_numeric(x, recursive = T)
x |
(any object) An object to test. |
recursive |
(logical scalar) Whether to use recursive checking. Default=TRUE. |
Returns a logical scalar indicating whether the object is thoroughly numeric.
is_numeric(iris)
is_numeric(iris[-5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.