Learn R Programming

kstMatrix (version 2.2-1)

kmsymmsetdiff: Compute the symmetric set difference between two sets

Description

Compute the symmetric set difference between two sets

Usage

kmsymmsetdiff(x, y)

kmsetdistance(x, y)

Value

kmsymmsetdiff: Symmetric set difference between 'x' and 'y'

kmsetdistance: Distance between the sets 'x' and 'y', i.e. the cardinality of the symmetric set difference

Arguments

x

Binary vector representing a set

y

Binary vector representing a set

See Also

Other Utilities: kmcolors(), kmdoubleequal(), kmsetiselement()

Other Utilities: kmcolors(), kmdoubleequal(), kmsetiselement()

Examples

Run this code
kmsymmsetdiff(c(1,0,0), c(1,1,0))

kmsetdistance(c(1,0,0), c(1,1,0))

Run the code above in your browser using DataLab