| type_freqs | R Documentation |
type_freq and type_freqs retrieve the frequency of all or
some of the items of a freqlist object.
type_freqs(x, types = NULL, with_names = FALSE, ...) type_freq(x, types = NULL, with_names = FALSE, ...)
x |
Object of class |
types |
If the argument If the argument |
with_names |
Logical. Whether or not the items in the output should
be given names. If |
... |
Additional arguments. |
Numeric vector representing the frequencies of the items.
type_names
(flist <- freqlist("The man and the mouse.", as_text = TRUE))
type_freqs(flist) # frequencies of all items
type_names(flist) # names of all items
type_freqs(flist, with_names = TRUE) # frequencies of all types, with names
type_freqs(flist, c("man", "the")) # frequencies of specific items ...
type_freqs(flist, c("the", "man")) # ... in the requested order
type_freq(flist, "the") # frequency of one item
# frequencies of specific items can also be printed using subsetting
flist[c("the", "man")]
flist["the"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.