Description Usage Arguments Details Value Examples
Given a contingency table of counts, combine factors with equal counts.
1 | combineEqual(x, maxChar = 24)
|
x |
numeric. Contingency table or matrix of names
and counts, see |
maxChar |
numeric. Maximum length of character string. Names exceeding this will be replaced with a letter-code. |
Factor names will be pasted together to make new names.
A code and definition will be generated if the new name
should exceed maxChar
.
a list with three elements
x |
Named vector of code frequencies. The name corresponds to the code. |
codes |
Character vector of alpha-code labels. |
defs |
Character vector of code definitions. |
1 2 | combineEqual(table(rep(991:1010, times=rep(1:4, each=5))))
combineEqual(table(rep(991:1010, times=rep(1:4, each=5))), maxChar=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.