The R Project SVN R

Rev

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

Rev 68948 Rev 69903
Line 1... Line 1...
1
% File src/library/base/man/charmatch.Rd
1
% File src/library/base/man/charmatch.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-2012 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{charmatch}
6
\name{charmatch}
7
\title{Partial String Matching}
7
\title{Partial String Matching}
8
\usage{
8
\usage{
Line 41... Line 41...
41
  This function is based on a C function written by Terry Therneau.
41
  This function is based on a C function written by Terry Therneau.
42
}
42
}
43
\seealso{
43
\seealso{
44
  \code{\link{pmatch}}, \code{\link{match}}.
44
  \code{\link{pmatch}}, \code{\link{match}}.
45
 
45
 
-
 
46
  \code{\link{startsWith}} for another matching of initial parts of strings;
46
  \code{\link{grep}} or \code{\link{regexpr}} for more general (regexp)
47
  \code{\link{grep}} or \code{\link{regexpr}} for more general (regexp)
47
  matching of strings.
48
  matching of strings.
48
}
49
}
49
\examples{
50
\examples{
50
charmatch("", "")                             # returns 1
51
charmatch("", "")                             # returns 1