validate_integer | R Documentation |
This function checks whether a vector is an integer.
validate_integer(x)
x |
A vector. |
Returns a numeric (integer) vector (if valid) or NA (if not valid).
validate_integer(c(2, 6, 3.3, "", NA, "6", "hello, world")) # [1] 2 6 NA NA NA 6 NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.