Description Usage Arguments Value Note Author(s) References Examples
Generate table with counts and parts in various different representations. The differen representations are also du to marginal totals in the different directions.
1 2 | tableCountPart_2d(x = 1, y = 1, z = 1, precDigit = 1,
x_prefix = "", y_prefix = "", debug = 0, big.mark = FALSE, ...)
|
x |
data vector together with y as alternative to z |
y |
data vector together with x as alternative to z |
z |
data.frame as alternative to x and y |
precDigit |
number of digits for result |
x_prefix |
prefix for label in x-axis |
y_prefix |
prefix for label in y-axis |
debug |
not relevant |
big.mark |
= thousand separator |
... |
arguments passed to further functions |
data.frame with computed statistics
under continuous developement
Roland Rapold
none
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | str(mtcars)
table(mtcars$gear)
table(mtcars$carb)
precDigit <- 1
x <- mtcars$gear # Auspraegungen in Resultat in Reihen
y <- mtcars$carb # Auspraegungen in Resultat in Spalten
z <- as.data.frame.matrix(table(x, y))
tableCountPart_2d(x = x, y = y, precDigit = 3) [[4]]
tableCountPart_2d(z = z, precDigit = 3)[[4]]
tableCountPart_2d(z = z, precDigit = 1)[[5]]
tableCountPart_2d(z = z, precDigit = 1)[[6]]
tableCountPart_2d(z = z, precDigit = 1)[[7]]
tableCountPart_2d(z = z, precDigit = 0)$abs
tableCountPart_2d(z = z, precDigit = 0)$abs_ant_col
tableCountPart_2d(z = z, precDigit = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.