ismembertol {matlab2r} | R Documentation |
Tolerant alternative to ismember
Description
Does the
Usage
ismembertol(A, B, rows = FALSE, indices = TRUE)
Arguments
A |
a vector, matrix or dataframe |
B |
another vector, matrix or dataframe |
rows |
if |
indices |
if |
Value
Same as ismember
Author(s)
Waldir Leoncio
See Also
ismember
Examples
x <- t(1:6) * pi
y <- 10 ^ log10(x)
# Show that values are equal, but not identical (due to floating-point error)
all.equal(x, y)
identical(x, y)
# Checking the difference in outputs
ismember(x, y)
ismembertol(x, y)
[Package matlab2r version 1.5.0 Index]