fuzzyMatches(x, y, ...)
getSamples-methods
):
x
can reference values in y
. If TRUE (default), only exact matches of values in x
and y
will be used.
x
(when strict = FALSE
). If TRUE (default), all values in x
will be returned with those that match values in y
replaced by the corresponding values in y
. If FALSE, non-matching values will be removed.
nomatch
for non-matching values in x
.
y
(default is "*"). Any occurence of match.all
in x
will be replaced by all values in y
.
strict = FALSE
, keep = TRUE
, and alias = FALSE
.
x
will cause an error and missing values in codey may cause unexpected behavior.
x
, that match values in y
according to the parameters described above.
x
are matched against y
to find any exact matches. Next, numerical values in x
are used to retrieve the corresponding positions in y
. All unmatched values may be retained or dropped (depending on the value of keep
), and a list of unique values is returned. Note that a value of match.all
in x
will be interpreted as a match for ALL values in y
, and therefore replaced with the contents of y
.
fuzzyMatches-methods
, match
a <- c(1, "four", "missing")
b <- c("one", "two", "three", "four")
fuzzyMatches(a, b)
fuzzyMatches(a, b, strict=FALSE)
fuzzyMatches(a, b, strict=FALSE, alias=FALSE)
fuzzyMatches(a, b, strict=FALSE, keep=FALSE)
Run the code above in your browser using DataLab