tableCountPart_2d: Generate table with counts an parts in various different...

Description Usage Arguments Value Note Author(s) References Examples

View source: R/describe.R

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

1
2
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

 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)

rrMisc documentation built on June 25, 2021, 3 a.m.