tableCountPart_2d {rrMisc} | R Documentation |
Generate table with counts and parts in various different representations. The differen representations are also du to marginal totals in the different directions.
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
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)