Open hadley opened 8 years ago
Shorter version of prop.table() with na.rm = TRUE
prop.table()
na.rm = TRUE
prop <- function(x) x / sum(x, na.rm = TRUE)
Shorter version of
prop.table()
withna.rm = TRUE