The R Project SVN R

Rev

Rev 27273 | Rev 32158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27273 Rev 27625
Line 28... Line 28...
28
\value{
28
\value{
29
  They return numeric vectors containing the result of the element
29
  They return numeric vectors containing the result of the element
30
  by element operations.  The elements of shorter vectors are recycled
30
  by element operations.  The elements of shorter vectors are recycled
31
  as necessary (with a \code{\link{warning}} when they are recycled only
31
  as necessary (with a \code{\link{warning}} when they are recycled only
32
  \emph{fractionally}).  The operators are \code{+} for addition,
32
  \emph{fractionally}).  The operators are \code{+} for addition,
33
  \code{-} for subtraction \code{*} for multiplication, \code{/} for
33
  \code{-} for subtraction, \code{*} for multiplication, \code{/} for
34
  division and \code{^} for exponentiation.
34
  division and \code{^} for exponentiation.
35
 
35
 
36
  \code{\%\%} indicates \code{x mod y} and \code{\%/\%} indicates
36
  \code{\%\%} indicates \code{x mod y} and \code{\%/\%} indicates
37
  integer division.  It is guaranteed that \code{x == (x \%\% y) + y * ( x
37
  integer division.  It is guaranteed that \code{x == (x \%\% y) + y * ( x
38
    \%/\% y )} unless \code{y == 0} where the result is \code{\link{NA}} or
38
    \%/\% y )} unless \code{y == 0} where the result is \code{\link{NA}} or