row_min.Rd
This function will determine the minimum value in a each row of a data frame
row_min(data, na.rm = FALSE)
A data frame
Logical. If TRUE
the function will ignore NA
values. If FLASE
then the function will return a NA
.
A vector of the minimum values of each row of data
. If a row has no values (i.e.
all values are NA
then the function will return a NA
.
if (FALSE) {
set.seed(1)
df <- data.frame(X = rnorm(10, mean = 3, sd = 2),
Y = c(NA, rnorm(9, mean = 5, sd = 0.5)))
row_min(df, na.rm = TRUE)
row_min(df, na.rm = FALSE)
}