Minimum and maximum of a vector
Minimum and maximum of a vector.
min_max(x,index=FALSE, percent = FALSE)
x |
A numerical vector with data. NAs are handled naturally. |
index |
A boolean value for the indices of the minimum and the maximum value. |
percent |
A boolean value for the percent of the positive and negative numbers. |
A vector with the relevant values, min and max.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x <- rnorm(100 * 500) s1 <- min_max(x) s2 <- c(min(x), max(x))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.