The R Project SVN R

Rev

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

Rev 59091 Rev 61433
Line 15... Line 15...
15
  the generalized Levenshtein edit distance (the minimal possibly
15
  the generalized Levenshtein edit distance (the minimal possibly
16
  weighted number of insertions, deletions and substitutions needed to
16
  weighted number of insertions, deletions and substitutions needed to
17
  transform one string into another).
17
  transform one string into another).
18
}
18
}
19
\usage{
19
\usage{
20
agrep(pattern, x, max.distance = 0.1, costs = NULL, 
20
agrep(pattern, x, max.distance = 0.1, costs = NULL,
21
      ignore.case = FALSE, value = FALSE, fixed = TRUE,
21
      ignore.case = FALSE, value = FALSE, fixed = TRUE,
22
      useBytes = FALSE)
22
      useBytes = FALSE)
23
}
23
}
24
\arguments{
24
\arguments{
25
  \item{pattern}{a non-empty character string or a character string
25
  \item{pattern}{a non-empty character string or a character string
Line 72... Line 72...
72
  another.
72
  another.
73
 
73
 
74
  As from \R 2.10.0 this uses \code{tre} by Ville Laurikari
74
  As from \R 2.10.0 this uses \code{tre} by Ville Laurikari
75
  (\url{http://http://laurikari.net/tre/}), which supports MBCS
75
  (\url{http://http://laurikari.net/tre/}), which supports MBCS
76
  character matching much better than the previous version.
76
  character matching much better than the previous version.
77
  
77
 
78
  The main effect of \code{useBytes} is to avoid errors/warnings about
78
  The main effect of \code{useBytes} is to avoid errors/warnings about
79
  invalid inputs and spurious matches in multibyte locales.
79
  invalid inputs and spurious matches in multibyte locales.
80
  It inhibits the conversion of inputs with marked encodings, and is
80
  It inhibits the conversion of inputs with marked encodings, and is
81
  forced if any input is found which is marked as \code{"bytes"}.
81
  forced if any input is found which is marked as \code{"bytes"}.
82
}
82
}