View source: R/general.purpuse.utilities.R
compareSets | R Documentation |
return matrix of set similarities defined by fun.
compareSets(l1, l2 = l1, fun = "o")
l1 |
list of sets to be compared |
l2 |
list of sets to be compared (compare l1 with itself if l2 is not set) |
fun |
function to calculate similarity or character. 'o' will result in intersect/min; 'j' in intersect/union |
Default is size of intersection divided by minimal size (overlap or Szymkiewicz–Simpson coefficient).
matrix if length(l1),length(l2) size
compareSets(list(letters[1:6],1:5),list(letters[1:8],4:8,letters[4:10]),fun = 'j')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.