| is.number | R Documentation | 
Checks if provided object is a number, i.e. a length-one numeric vector.
is.number(x, integer = FALSE)
| x | an object to check | 
| integer | logical: check if number is integer | 
a logical value indicating whether provided object is a string
is.number(3)              # [1] TRUE
is.number(3:4)            # [1] FALSE
is.number("3")            # [1] FALSE
is.number(NaN)            # [1] TRUE
is.number(NA_integer_)    # [1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.