Learn R Programming

mclm (version 0.2.7)

freqlist_diff: Subtract frequency lists

Description

This function merges information from two frequency lists, subtracting the frequencies found in the second frequency lists from the frequencies found in the first list.

Usage

freqlist_diff(x, y)

Value

An object of class freqlist.

Arguments

x, y

Objects of class freqlist.

Examples

Run this code
(flist1 <- freqlist("A first toy corpus.", as_text = TRUE))
(flist2 <- freqlist("A second toy corpus.", as_text = TRUE))

freqlist_diff(flist1, flist2)

Run the code above in your browser using DataLab