View source: R/inspect_numberid.R
inspect_numberid | R Documentation |
Check whether a given numeric value has the expected number of digits.
inspect_numberid(number, expected_length)
number |
A numeric value. |
expected_length |
An integer specifying the expected number of digits. |
A logical value: 'TRUE' if 'number' has the expected length and consists only of digits, otherwise 'FALSE'.
inspect_numberid(12345, 5) # TRUE - 5 digits
inspect_numberid(1234, 5) # FALSE - 4 digits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.