Description Usage Arguments Value Note Author(s) References Examples
Generate table with counts, parts and cumulative parts. Allow to cut table after predefined length
1 2 3 | tableCountPart(x, varName = "var", anzName = "anz", antName = "ant",
csumName = FALSE, ordCol = 1, ordDir = "asc", rowLimit = FALSE,
...)
|
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 |
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 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"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.