The R Project SVN R

Rev

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

Rev 61168 Rev 61433
Line 27... Line 27...
27
  \item{x}{a numeric or complex vector.}
27
  \item{x}{a numeric or complex vector.}
28
  \item{base}{a positive or complex number: the base with respect to which
28
  \item{base}{a positive or complex number: the base with respect to which
29
    logarithms are computed.  Defaults to \eqn{e}=\code{exp(1)}.}
29
    logarithms are computed.  Defaults to \eqn{e}=\code{exp(1)}.}
30
  }
30
  }
31
\description{
31
\description{
32
  \code{log} computes logarithms, by default natural logarithms, 
32
  \code{log} computes logarithms, by default natural logarithms,
33
  \code{log10} computes common (i.e., base 10) logarithms, and
33
  \code{log10} computes common (i.e., base 10) logarithms, and
34
  \code{log2} computes binary (i.e., base 2) logarithms.
34
  \code{log2} computes binary (i.e., base 2) logarithms.
35
  The general form \code{log(x, base)} computes logarithms with base
35
  The general form \code{log(x, base)} computes logarithms with base
36
  \code{base}.
36
  \code{base}.
37
 
37
 
Line 65... Line 65...
65
  \code{log} will be used).
65
  \code{log} will be used).
66
 
66
 
67
  \code{logb} is a wrapper for \code{log} for compatibility with S.  If
67
  \code{logb} is a wrapper for \code{log} for compatibility with S.  If
68
  (S3 or S4) methods are set for \code{log} they will be dispatched.
68
  (S3 or S4) methods are set for \code{log} they will be dispatched.
69
  Do not set S4 methods on \code{logb} itself.
69
  Do not set S4 methods on \code{logb} itself.
70
  
70
 
71
  All except \code{log} are \link{primitive} functions.
71
  All except \code{log} are \link{primitive} functions.
72
}
72
}
73
\section{S4 methods}{
73
\section{S4 methods}{
74
  \code{exp}, \code{expm1}, \code{log}, \code{log10}, \code{log2} and
74
  \code{exp}, \code{expm1}, \code{log}, \code{log10}, \code{log2} and
75
  \code{log1p} are S4 generic and are members of the
75
  \code{log1p} are S4 generic and are members of the