File: rot13.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (34 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\name{rot13}
\alias{rot13}
\title{Ergheaf gur EBG-13 pvcurevat bs n fgevat}
\description{
    rot13 applied to the above title returns the string
    "Returns the ROT-13 ciphering of a string".
}
\usage{
rot13(string)
}
\arguments{
  \item{string}{a string of characters.}
}
\value{
  a string of characters.
}
\author{J.R. Lobry}
\references{
  \code{citation("seqinr")}
}
\seealso{\code{\link{chartr}}
}
\examples{
##
## Simple ciphering of a string:
##
message <- "Hello, world!"
rot13(message) # "Uryyb, jbeyq!"
##
## Routine sanity check:
##
stopifnot(identical(rot13(rot13(message)), message))
}
\keyword{ manip }