counts <- matrix(c(0, 3, 1,
2, 0, 4,
5, 1, 0), 3, 3, byrow = TRUE)
rownames(counts) <- colnames(counts) <- c("A", "B", "C")
normalize_weights(counts, method = "row")
normalize_weights(counts, method = "max")
Run the code above in your browser using DataLab