

   all {base}                                   R Documentation

   AArree AAllll VVaalluueess TTrruuee??

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

        Given a set of logical vectors, are all of the values
        true?

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

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

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

        ...: one or more logical vectors.

      na.rm: logical. If true `NA' values are removed before
             the result is computed.

   VVaalluuee::

        Given a sequence of logical arguments, a logical value
        indicating whether or not all of the elements of `x'
        are `TRUE'.

        The value returned is `TRUE' if all the values in `x'
        are `TRUE', and `FALSE' if any the values in `x' are
        `FALSE'.

        If `x' consists of a mix of `TRUE' and `NA' values,
        then value is `NA'.

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

        range(x <- sort(round(rnorm(10) - 1.2,1)))
        if(all(x < 0)) cat("all x values are negative\n")

