uniqCountReport {wrMisc} | R Documentation |
Report number of unique and redundant elements (optional figure)
Description
Make report about number of unique and redundant elements of vector 'dat'. Note : fairly slow for long vectors !!
Usage
uniqCountReport(
dat,
frL = NULL,
plotDispl = FALSE,
tit = NULL,
col = NULL,
radius = 0.9,
sizeTo = NULL,
clockwise = FALSE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
Arguments
dat |
(charcter or numeric vector) main input where number of unique (and redunant) should be determined |
frL |
(logical) optional (re-)introducing results from |
plotDispl |
(logical) decide if pie-type plot should be produced |
tit |
(character) optional title in plot |
col |
(character) custom colors in pie |
radius |
(numeric) radius passed to |
sizeTo |
(numeric or charcter) optional reference group for size-population relative adjusting overall surface of pie |
clockwise |
(logical) argument passed to pie |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
Value
vector with counts of n (total), nUnique (wo any repeated), nHasRepeated (first of repeated), nRedundant), optional figure
See Also
Examples
layout(1:2)
uniqCountReport(rep(1:7,1:7),plot=TRUE)
uniqCountReport(rep(1:3,1:3),plot=TRUE,sizeTo=rep(1:7,1:7))