The R Project SVN R

Rev

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

Rev 19008 Rev 25360
Line 7... Line 7...
7
  Compute the lengths and values of runs of equal values in a vector
7
  Compute the lengths and values of runs of equal values in a vector
8
  -- or the reverse operation.
8
  -- or the reverse operation.
9
}
9
}
10
\usage{
10
\usage{
11
rle(x)
11
rle(x)
12
\method{print}{rle}(x, digits = getOption("digits"), \dots)
-
 
13
inverse.rle(x, \dots)
12
inverse.rle(x, \dots)
14
}
13
}
15
\arguments{
14
\arguments{
16
  \item{x}{a simple vector for \code{rle()} or an object of class
15
  \item{x}{a simple vector for \code{rle()} or an object of class
17
    \code{"rle"} for \code{print()} or \code{inverse.rle()}.}
16
    \code{"rle"} for \code{inverse.rle()}.}
18
  \item{digits, \dots}{potentially further arguments to the
17
  \item{\dots}{further arguments which are ignored in \R.}
19
    corresponding method.}
-
 
20
}
18
}
21
\value{
19
\value{
22
  \code{rle()} returns an object of class \code{"rle"} which is a list
20
  \code{rle()} returns an object of class \code{"rle"} which is a list
23
  with components
21
  with components
24
  \item{lengths}{an integer vector containing the length of each run.}
22
  \item{lengths}{an integer vector containing the length of each run.}