The R Project SVN R

Rev

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

Rev 61168 Rev 61433
Line 22... Line 22...
22
  Add a small amount of noise to a numeric vector.
22
  Add a small amount of noise to a numeric vector.
23
}
23
}
24
\value{
24
\value{
25
  \code{jitter(x, \dots)} returns a numeric of the same length as
25
  \code{jitter(x, \dots)} returns a numeric of the same length as
26
  \code{x}, but with an \code{amount} of noise added in order to break
26
  \code{x}, but with an \code{amount} of noise added in order to break
27
  ties. 
27
  ties.
28
}
28
}
29
\details{
29
\details{
30
  The result, say \code{r}, is \code{r <- x + runif(n, -a, a)}
30
  The result, say \code{r}, is \code{r <- x + runif(n, -a, a)}
31
  where \code{n <- length(x)} and \code{a} is the \code{amount}
31
  where \code{n <- length(x)} and \code{a} is the \code{amount}
32
  argument (if specified).
32
  argument (if specified).