tcount | R Documentation |
frequency of entries, ordered by frequency
frequency of entries, ordered by frequency, minimum count 2
tcount(
x,
minCount = NULL,
doSort = TRUE,
maxCount = NULL,
nameSortFunc = sort,
...
)
tcount2(
x,
minCount = 2,
doSort = TRUE,
maxCount = NULL,
nameSortFunc = sort,
...
)
x |
|
minCount |
optional |
doSort |
|
maxCount |
optional |
nameSortFunc |
|
... |
additional parameters are ignored. |
This function mimics output from table()
with two key
differences. It sorts the results by decreasing frequency, and optionally
filters results for a minimum frequency. It is effective when checking
for duplicate values, and ordering them by the number of occurrences.
This function is useful when working with large vectors of gene identifiers, where it is not always obvious whether genes are replicated in a particular technological assay. Transcript microarrays for example, can contain many replicated genes, but often only a handful of genes are highly replicated, while the rest are present only once or twice on the array.
This function is a simple customization of tcount()
with minCount=2
so it only reports frequencies of 2
or higher.
integer
vector of counts, named by the unique input
values in x
.
integer
vector of counts, named by the unique input
values in x
, by default limited to entries with frequency
2
or higher.
Other jam string functions:
asSize()
,
breaksByVector()
,
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
mixedOrder()
,
mixedSortDF()
,
mixedSorts()
,
mixedSort()
,
mmixedOrder()
,
nameVectorN()
,
nameVector()
,
padInteger()
,
padString()
,
pasteByRowOrdered()
,
pasteByRow()
,
sizeAsNum()
,
ucfirst()
,
uniques()
Other jam string functions:
asSize()
,
breaksByVector()
,
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
mixedOrder()
,
mixedSortDF()
,
mixedSorts()
,
mixedSort()
,
mmixedOrder()
,
nameVectorN()
,
nameVector()
,
padInteger()
,
padString()
,
pasteByRowOrdered()
,
pasteByRow()
,
sizeAsNum()
,
ucfirst()
,
uniques()
testVector <- rep(c("one", "two", "three", "four"), c(1:4));
tcount(testVector);
tcount(testVector, minCount=2);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.