The R Project SVN R

Rev

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

Rev 59039 Rev 60323
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, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2012 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{
9
charmatch(x, table, nomatch = NA_integer_)
9
charmatch(x, table, nomatch = NA_integer_)
10
}
10
}
11
\alias{charmatch}
11
\alias{charmatch}
12
\arguments{
12
\arguments{
13
  \item{x}{the values to be matched: converted to a character vector by
13
  \item{x}{the values to be matched: converted to a character vector by
14
    \code{\link{as.character}}.}
14
    \code{\link{as.character}}.  \link{Long vectors} are supported.}
15
  \item{table}{the values to be matched against: converted to a character
15
  \item{table}{the values to be matched against: converted to a character
16
    vector.}
16
    vector.  \link{Long vectors} are not supported.}
17
  \item{nomatch}{the (integer) value to be returned at non-matching
17
  \item{nomatch}{the (integer) value to be returned at non-matching
18
    positions.}
18
    positions.}
19
}
19
}
20
\description{
20
\description{
21
  \code{charmatch} seeks matches for the elements of its first argument
21
  \code{charmatch} seeks matches for the elements of its first argument