The R Project SVN R

Rev

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

Rev 61598 Rev 62696
Line 58... Line 58...
58
  is integer (with overflow, which occurs at
58
  is integer (with overflow, which occurs at
59
  \eqn{\pm(2^{31} - 1)}{+/- (2^31 - 1)},
59
  \eqn{\pm(2^{31} - 1)}{+/- (2^31 - 1)},
60
  returned as \code{NA_integer_} with a warning).
60
  returned as \code{NA_integer_} with a warning).
61
 
61
 
62
  The rules for determining the attributes of the result are rather
62
  The rules for determining the attributes of the result are rather
63
  complicated.  Most attributes are taken from the longer argument, the
63
  complicated.  Most attributes are taken from the longer argument.
-
 
64
  Names will be copied from the first if it is the same length as the
-
 
65
  answer, otherwise from the second if that is.  If the arguments are
64
  first if they are of the same length.  Names will be copied from the
66
  the same length, attributes will be copied from both, with those of
65
  first if it is the same length as the answer, otherwise from the
67
  the first argument taking precedence when the same attribute is
66
  second if that is.  For time series, these operations are allowed only
68
  present in both arguments. For time series, these operations are
67
  if the series are compatible, when the class and \code{\link{tsp}}
69
  allowed only if the series are compatible, when the class and
68
  attribute of whichever is a time series (the same, if both are) are
70
  \code{\link{tsp}} attribute of whichever is a time series (the same,
69
  used.  For arrays (and an array result) the dimensions and dimnames
71
  if both are) are used.  For arrays (and an array result) the
70
  are taken from first argument if it is an array, otherwise the second.
72
  dimensions and dimnames are taken from first argument if it is an
-
 
73
  array, otherwise the second.
-
 
74
  
71
}
75
}
72
\details{
76
\details{
73
  The binary arithmetic operators are generic functions: methods can be
77
  The binary arithmetic operators are generic functions: methods can be
74
  written for them individually or via the
78
  written for them individually or via the
75
  \code{\link[=S3groupGeneric]{Ops}} group generic function.  (See
79
  \code{\link[=S3groupGeneric]{Ops}} group generic function.  (See