The R Project SVN R

Rev

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

Rev 59039 Rev 62376
Line 1... Line 1...
1
% File src/library/base/man/sum.Rd
1
% File src/library/base/man/sum.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2011 R Core Team
3
% Copyright 1995-2013 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{sum}
6
\name{sum}
7
\alias{sum}
7
\alias{sum}
8
\title{Sum of Vector Elements}
8
\title{Sum of Vector Elements}
Line 37... Line 37...
37
  be returned, otherwise \code{NA} and \code{NaN} values are ignored.
37
  be returned, otherwise \code{NA} and \code{NaN} values are ignored.
38
 
38
 
39
  Logical true values are regarded as one, false values as zero.
39
  Logical true values are regarded as one, false values as zero.
40
  For historical reasons, \code{NULL} is accepted and treated as if it
40
  For historical reasons, \code{NULL} is accepted and treated as if it
41
  were \code{integer(0)}.
41
  were \code{integer(0)}.
-
 
42
 
-
 
43
  Loss of accuracy can occur when summing values of different signs:
-
 
44
  this can even occur for sufficiently long integer inputs if the
-
 
45
  partial sums would cause integer overflow.  Where possible
-
 
46
  extended-precision accumulators are used, but this is
-
 
47
  platform-dependent.
42
}
48
}
43
\section{S4 methods}{
49
\section{S4 methods}{
44
  This is part of the S4 \code{\link[=S4groupGeneric]{Summary}}
50
  This is part of the S4 \code{\link[=S4groupGeneric]{Summary}}
45
  group generic.  Methods for it must use the signature
51
  group generic.  Methods for it must use the signature
46
  \code{x, \dots, na.rm}.
52
  \code{x, \dots, na.rm}.