powered by
Extracts numeric values from data that may contain threshold indicators (e.g., "<10", ">1280") or regular numeric values.
extract_numeric_values(x)
A numeric vector with threshold indicators converted to their numeric equivalents.
A vector that may contain numeric values, character strings with threshold indicators, or a mix of both.
# Mixed data with threshold indicators mixed_data <- c(10, 20, "<5", ">100", 50) extract_numeric_values(mixed_data)
Run the code above in your browser using DataLab