Skip to contents

[Experimental] This function calculates the Jaccard similarity or overlap coefficient between two string vectors.

Usage

rs_set_similarity(s_1, s_2, overlap_coefficient)

Arguments

s_1

Character vector. The first set.

s_2

Character vector. The second set.

overlap_coefficient

Boolean. Use the overlap coefficient instead of the Jaccard similarity.

Value

The Jaccard similarity or overlap coefficient.