tableCountPart_2d {rrMisc}R Documentation

Generate table with counts an parts in various different representations.

Description

Generate table with counts and parts in various different representations. The differen representations are also du to marginal totals in the different directions.

Usage

tableCountPart_2d(
  x = 1,
  y = 1,
  z = 1,
  precDigit = 1,
  x_prefix = "",
  y_prefix = "",
  debug = 0,
  big.mark = FALSE,
  ...
)

Arguments

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

Value

data.frame with computed statistics

Note

under continuous developement

Author(s)

Roland Rapold

References

none

Examples

   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)

[Package rrMisc version 0.4.6 Index]