percent <- function(x, digits = 8, margin = NULL) { (round (prop.table(x, margin) * 100, digits)) }