

range {base}                                 R Documentation

_R_a_n_g_e _o_f _V_a_l_u_e_s

_D_e_s_c_r_i_p_t_i_o_n_:

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

_U_s_a_g_e_:

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

_A_r_g_u_m_e_n_t_s_:

     ...: any `numeric' objects.

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

_D_e_t_a_i_l_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_e_e _A_l_s_o_:

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

_E_x_a_m_p_l_e_s_:

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

