frequency of entries, ordered by frequency
Arguments
- x
character
,numeric
,factor
vector input to use when calculating frequencies.- minCount
optional
integer
minimum frequency, any results with fewer counts observed will be omitted from results.- doSort
logical
whether to sort results decreasing by frequency.- maxCount
optional
integer
maximum frequency for returned results.- nameSortFunc
function
used to sort results after sorting by frequency. For example, one might usemixedSort()
. IfnameSortFunc=NULL
then no name sort will be applied.- ...
additional parameters are ignored.
Details
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.
See also
Other jam string functions:
asSize()
,
breaksByVector()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
nameVector()
,
nameVectorN()
,
padInteger()
,
padString()
,
pasteByRow()
,
pasteByRowOrdered()
,
sizeAsNum()
,
ucfirst()