The R Project SVN R

Rev

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

Rev 68948 Rev 74918
Line 1... Line 1...
1
% File src/library/base/man/agrep.Rd
1
% File src/library/base/man/agrep.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-2015 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{agrep}
6
\name{agrep}
7
\alias{agrep}
7
\alias{agrep}
8
\alias{agrepl}
8
\alias{agrepl}
Line 103... Line 103...
103
  Original version in \R < 2.10.0 by David Meyer.
103
  Original version in \R < 2.10.0 by David Meyer.
104
  Current version by Brian Ripley and Kurt Hornik.
104
  Current version by Brian Ripley and Kurt Hornik.
105
}
105
}
106
\seealso{
106
\seealso{
107
  \code{\link{grep}}, \code{\link{adist}}.
107
  \code{\link{grep}}, \code{\link{adist}}.
-
 
108
  A different interface to approximate string matching is provided by
-
 
109
  \code{\link{aregexec}()}.
108
}
110
}
109
\examples{
111
\examples{
110
agrep("lasy", "1 lazy 2")
112
agrep("lasy", "1 lazy 2")
111
agrep("lasy", c(" 1 lazy 2", "1 lasy 2"), max = list(sub = 0))
113
agrep("lasy", c(" 1 lazy 2", "1 lasy 2"), max = list(sub = 0))
112
agrep("laysy", c("1 lazy", "1", "1 LAZY"), max = 2)
114
agrep("laysy", c("1 lazy", "1", "1 LAZY"), max = 2)