Minimum and maximum | R Documentation |
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>.
rowMins, rowMaxs, nth, colrange, colMedians,colSort, rowSort
x <- rnorm(100 * 500)
s1 <- min_max(x)
s2 <- c(min(x), max(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.