# example data
mu <- rbind(
data.frame(mapunit = "A", cophase = c("Alpha", "Beta"), comppct = c(90, 10), muacres = 100),
data.frame(mapunit = "B", cophase = c("Beta", "Alpha"), comppct = c(70, 30), muacres = 1000)
)
mu_confusion_matrix(mu, mapunit = "mapunit", cophase = "cophase", comppct = "comppct")
Run the code above in your browser using DataLab