The R Project SVN R

Rev

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

Rev 28018 Rev 28166
Line 2... Line 2...
2
\alias{rep}
2
\alias{rep}
3
\alias{rep.default}
3
\alias{rep.default}
4
\alias{rep.int}
4
\alias{rep.int}
5
\alias{rep.POSIXct}
5
\alias{rep.POSIXct}
6
\alias{rep.POSIXlt}
6
\alias{rep.POSIXlt}
-
 
7
\alias{rep.Date}
7
\title{Replicate Elements of Vectors and Lists}
8
\title{Replicate Elements of Vectors and Lists}
8
\description{
9
\description{
9
  \code{rep} replicates the values in \code{x}. It is a generic
10
  \code{rep} replicates the values in \code{x}. It is a generic
10
  function, and the default method is described here.
11
  function, and the default method is described here.
11
 
12
 
Line 18... Line 19...
18
 
19
 
19
rep.int(x, times)
20
rep.int(x, times)
20
}
21
}
21
\arguments{
22
\arguments{
22
  \item{x}{a vector (of any mode including a list) or a pairlist or a
23
  \item{x}{a vector (of any mode including a list) or a pairlist or a
23
    \code{POSIXct} or \code{POSIXlt} object.}
24
    \code{POSIXct} or \code{POSIXlt} or \code{date} object.}
24
  \item{times}{optional non-negative integer.  A vector giving the number of
25
  \item{times}{optional non-negative integer.  A vector giving the number of
25
    times to repeat each element if of length \code{length(x)}, or to
26
    times to repeat each element if of length \code{length(x)}, or to
26
    repeat the whole vector if of length 1.}
27
    repeat the whole vector if of length 1.}
27
  \item{length.out}{optional integer. The desired length of the
28
  \item{length.out}{optional integer. The desired length of the
28
    output vector.}
29
    output vector.}