Description Usage Arguments Value
View source: R/clean_functions.R
Identify all numbers from a character vector (e.g. ID variables). Can return indices of these numbers, their values, or boolean indicators for whether each value is numeric.
1 | find.numeric(x, response = c("index", "value", "boolean"))
|
x |
A character vector containing possible numeric values that need identified. |
response |
The type of values to be returned. One of "index" (default), "value", or "boolean". |
If response == "index"
, the indices of all numeric values. If
response == "value"
, the values of these numeric values, with
non-numeric values replaced by NA
. If response == "boolean"
,
boolean indicators for whether each value in x
is numeric or string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.