(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"]
Run the code above in your browser using DataLab