The R Project SVN R

Rev

Rev 85983 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85983 Rev 88872
Line 1... Line 1...
1
% File src/library/base/man/chartr.Rd
1
% File src/library/base/man/chartr.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2024 R Core Team
3
% Copyright 1995-2025 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{chartr}
6
\name{chartr}
7
\alias{chartr}
7
\alias{chartr}
8
\alias{tolower}
8
\alias{tolower}
Line 34... Line 34...
34
  \code{chartr} translates each character in \code{x} that is specified
34
  \code{chartr} translates each character in \code{x} that is specified
35
  in \code{old} to the corresponding character specified in \code{new}.
35
  in \code{old} to the corresponding character specified in \code{new}.
36
  Ranges are supported in the specifications, but character classes and
36
  Ranges are supported in the specifications, but character classes and
37
  repeated characters are not.  If \code{old} contains more characters
37
  repeated characters are not.  If \code{old} contains more characters
38
  than new, an error is signaled; if it contains fewer characters, the
38
  than new, an error is signaled; if it contains fewer characters, the
39
  extra characters at the end of \code{new} are ignored.
39
  extra characters at the end of \code{new} are ignored. To include a literal
-
 
40
  \code{-} that should not denote a range, make it the first or the last
-
 
41
  character in the specification.
40
 
42
 
41
  \code{tolower} and \code{toupper} convert upper-case characters in a
43
  \code{tolower} and \code{toupper} convert upper-case characters in a
42
  character vector to lower-case, or vice versa.  Non-alphabetic
44
  character vector to lower-case, or vice versa.  Non-alphabetic
43
  characters are left unchanged.  More than one character can be mapped
45
  characters are left unchanged.  More than one character can be mapped
44
  to a single upper-case character.
46
  to a single upper-case character.