rangesfrom
Rangesfrom is a utility function used in data analysis to compute the inclusive range of numeric data. It returns the minimum and maximum values observed in the input, providing a concise summary of value spread. The function is designed to work with simple vectors as well as tabular data structures such as matrices and data frames, producing per-dimension ranges when given multi-column input.
Rangesfrom accepts numeric inputs, including single vectors and higher-dimensional structures. For a single numeric vector, it
For a vector, the output is a two-element numeric vector representing the inclusive minimum and maximum. For
Rangesfrom is useful in data validation, normalization, and exploratory data analysis, where a quick sense of