The R Project SVN R

Rev

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

Rev 57074 Rev 60324
Line -... Line 1...
-
 
1
% File src/library/utils/man/adist.Rd
-
 
2
% Part of the R package, http://www.R-project.org
-
 
3
% Copyright 2011-2 R Core Team
-
 
4
% Distributed under GPL 2 or later
-
 
5
 
1
\name{adist}
6
\name{adist}
2
\alias{adist}
7
\alias{adist}
3
\title{Approximate String Distances}
8
\title{Approximate String Distances}
4
\description{
9
\description{
5
  Compute the approximate string distance between character vectors.
10
  Compute the approximate string distance between character vectors.
Line 10... Line 15...
10
\usage{
15
\usage{
11
adist(x, y = NULL, costs = NULL, counts = FALSE, fixed = TRUE,
16
adist(x, y = NULL, costs = NULL, counts = FALSE, fixed = TRUE,
12
      partial = !fixed, ignore.case = FALSE, useBytes = FALSE)
17
      partial = !fixed, ignore.case = FALSE, useBytes = FALSE)
13
}
18
}
14
\arguments{
19
\arguments{
15
  \item{x}{a character vector.}
20
  \item{x}{a character vector.  \link{Long vectors} are not supported.}
16
  \item{y}{a character vector, or \code{NULL} (default) indicating
21
  \item{y}{a character vector, or \code{NULL} (default) indicating
17
    taking \code{x} as \code{y}.}
22
    taking \code{x} as \code{y}.}
18
  \item{costs}{a numeric vector or list with names partially matching
23
  \item{costs}{a numeric vector or list with names partially matching
19
    \samp{insertions}, \samp{deletions} and \samp{substitutions} giving
24
    \samp{insertions}, \samp{deletions} and \samp{substitutions} giving
20
    the respective costs for computing the Levenshtein distance, or
25
    the respective costs for computing the Levenshtein distance, or