Search notes:

R function: range

range(vec) returns a vector with two elements: the first being the minimum value of vec, the second being the maximum value of vec.
range( c( 5, 17, 3, 11, 2, 13, 7) )
#
# [1]  2 17
Github repository about-r, path: /functions/range.R

See also

min and max.
Index to (some) R functions

Index