Learn R Programming

neurobase (version 1.32.4)

dicer: Calculate Dice from a Table

Description

Simple wrapper to calculate the Dice Coefficient/Similarity Index from a table

Usage

dicer(tab, verbose = TRUE)

Value

Numeric scalar (one number)

Arguments

tab

table or matrix that is 2 by 2

verbose

should the Dice be printed before returned?

Examples

Run this code
tab = matrix(c(1000, 20, 20, 400), ncol = 2)
dicer(tab)

Run the code above in your browser using DataLab