extract_numeric_values | R Documentation |
Extracts numeric values from data that may contain threshold indicators (e.g., "<10", ">1280") or regular numeric values.
extract_numeric_values(x)
x |
A vector that may contain numeric values, character strings with threshold indicators, or a mix of both. |
A numeric vector with threshold indicators converted to their numeric equivalents.
# Mixed data with threshold indicators
mixed_data <- c(10, 20, "<5", ">100", 50)
extract_numeric_values(mixed_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.