freq(
mtcars,
colvar = "gear",
rowvar = "cyl",
rowbyvar = "am",
statlist = statlist("n/N (x.x)",
distinct = FALSE,
denoms_by = c("gear", "am"),
zero_denom = "_0_")
)
Run the code above in your browser using DataLab