noEqualRows: Number of equal rows in two data sets

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Counts number of equal rows in two data sets. The two data sets shall have equal number of columns.

Usage

1
 noEqualRows(data1, data2, tolerance=1e-5, countOnce=TRUE)

Arguments

data1

The first data set.

data2

The second data set.

tolerance

Tolerated difference between two rows.

countOnce

Shall each equal row in data1 be counted just once, or number of rows it is equal to in data2.

Details

Rows are compared using column-wise comparisons. The sum of differences up to a given tolerance are tolerated.

Value

Integer value giving the count of equal instances.

Author(s)

Marko Robnik-Sikonja

See Also

CORElearn.

Examples

1
2
3
4
5
# uses two randomly generated data sets
set.seed(12345)
d1 <- classDataGen(100)
d2 <- classDataGen(100)
noEqualRows(d1, d2, tolerance=1e-4)


Search within the CORElearn package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.