View source: R/extended_s3_methods.R
try_cast_integer | R Documentation |
This internal function casts a character vector to integer, if the character vector only contains digits for entries. If the input vector is not of type character or if any entry contains a non-digit, then the vector is returned unmodified.
try_cast_integer(values)
values |
a vector of values to attempt conversion to integer. |
an integer vector if conversion succeeds; otherwise, the original vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.