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 61168
Line 27... Line 27...
27
  \emph{The New S Language}.
27
  \emph{The New S Language}.
28
  Wadsworth & Brooks/Cole.
28
  Wadsworth & Brooks/Cole.
29
}
29
}
30
\seealso{\code{\link{seq}}, \code{\link{sort}}.}
30
\seealso{\code{\link{seq}}, \code{\link{sort}}.}
31
\examples{
31
\examples{
32
x <- c(1:5,5:3)
32
x <- c(1:5, 5:3)
33
## sort into descending order; first more efficiently:
33
## sort into descending order; first more efficiently:
34
stopifnot(sort(x, decreasing = TRUE) == rev(sort(x)))
34
stopifnot(sort(x, decreasing = TRUE) == rev(sort(x)))
35
stopifnot(rev(1:7) == 7:1)#- don't need 'rev' here
35
stopifnot(rev(1:7) == 7:1)  #- don't need 'rev' here
36
}
36
}
37
\keyword{manip}
37
\keyword{manip}