

   range {base}                                 R Documentation

   RRaannggee ooff VVaalluueess

   DDeessccrriippttiioonn::

        `range' returns a vector containing the minimum and
        maximum of all the given arguments.

   UUssaaggee::

        range(..., na.rm = FALSE)

   AArrgguummeennttss::

        ...: any `numeric' objects.

      na.rm: logical, indicating if `NA''s should be omitted.

   DDeettaaiillss::

        This is a generic function; currently, it has only a
        default method (`range.default') which has an addi-
        tional argument for indicating whether non-finite ele-
        ments should be omitted.

        It is also a member of the `Summary' group of func-
        tions, see `Methods'.

        If `na.rm' is `FALSE', `NA' and `NaN' values in any of
        the arguments will cause NA values to be returned, oth-
        erwise `NA' values are ignored.

   SSeeee AAllssoo::

        `min', `max', `Methods'.

   EExxaammpplleess::

        x <- c(NA, 1:3, -1:1/0); x
        range(x)
        range(x, na.rm = TRUE)
        range(x, finite = TRUE)

