find_minimum_value {vvauditor}R Documentation

Find the minimum numeric value in a vector, ignoring non-numeric values

Description

Find the minimum numeric value in a vector, ignoring non-numeric values

Usage

find_minimum_value(numeric_vector)

Arguments

numeric_vector

A vector from which to find the minimum numeric value.

Value

The minimum numeric value in the input vector, or NA if none exist.

Examples

# Find the minimum of a numeric vector
find_minimum_value(c(3, 1, 4, 1, 5, 9)) # Returns   1

# Find the minimum of a mixed vector with non-numeric values
find_minimum_value(c(3, 1, 4, "two", 5, 9)) # Returns   1

# Attempt to find the minimum of a vector with only non-numeric values
find_minimum_value(c("one", "two", "three")) # Returns NA

[Package vvauditor version 0.6.0 Index]