Should be relatively fast and memory efficient. See rand_index_benchmark

rand_index(a, b, verbose = FALSE)

Arguments

a

particion 1 as vector

b

partition 2 as vector

verbose

Whether to print logs messages

Value

Rand index that ranges from 0 to 1