tableCountPart: Generate table with counts, parts and cumulative parts

Description Usage Arguments Value Note Author(s) References Examples

View source: R/describe.R

Description

Generate table with counts, parts and cumulative parts. Allow to cut table after predefined length

Usage

1
2
3
tableCountPart(x, varName = "var", anzName = "anz", antName = "ant",
  csumName = FALSE, ordCol = 1, ordDir = "asc", rowLimit = FALSE,
  ...)

Arguments

x

data.frame

varName

name of attribute to list

anzName

column name for counts

antName

column name for parts

csumName

column name for cumulative parts

ordCol

number of column to sort

ordDir

sort order ('asc' for ascending or 'desc' for descending)

rowLimit

number of rows with detailed counts and parts

...

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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
   data(mtcars, package = "datasets")
   str(mtcars)
   table(mtcars$gear)
   tableCountPart(x = mtcars$gear
           , varName = "Gänge"
           , anzName = "Anzahl"
           , antName = "Anteil"
           , csumName = "Anteil kumuliert"
           , ordCol = 1
           , ordDir = "desc"
           , rowLimit = 20
           )
   tableCountPart(x = mtcars$carb
           , varName = "Vergaser"
           , anzName = "Anzahl"
           , antName = "Anteil"
           , csumName = "Anteil kumuliert"
           , ordCol = 1
           , ordDir = "asc"
           , rowLimit = 20
           )
   tableCountPart(x = mtcars$carb
           , varName = "Vergaser"
           , anzName = "Anzahl"
           , antName = "Anteil"
           , csumName = "Anteil kumuliert"
           , ordCol = 1
           , ordDir = "asc"
           , rowLimit = 4
           )
   tableCountPart(x = mtcars$carb
           , varName = "Vergaser"
           , anzName = "Anzahl"
           , antName = "Anteil"
           )

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