merge_freqlist {mclm}R Documentation

Merge frequency lists

Description

These functions merge two or more frequency lists, adding up the frequencies. In the current implementation, original ranks are lost when merging.

Usage

freqlist_merge(x, y)

freqlist_merge_all(...)

Arguments

x, y

An object of class freqlist.

...

Various objects of class freqlist or a list of objects of class freqlist.

Value

An object of class freqlist.

Examples

(flist1 <- freqlist("A first toy corpus.", as_text = TRUE))
(flist2 <- freqlist("A second toy corpus.", as_text = TRUE))
(flist3 <- freqlist("A third toy corpus.", as_text = TRUE))

freqlist_merge(flist1, flist2)

freqlist_merge_all(flist1, flist2, flist3)
freqlist_merge_all(list(flist1, flist2, flist3)) # same result

[Package mclm version 0.2.7 Index]