Skip to contents

Finds collocations, i.e. multiword phrases that are more likely than their single words

Usage

kwr_collocations(x, min_volume_prop = 0.5, min_n = 2, quanteda = TRUE)

Arguments

x

A kwresearch object, which queries will be collocations calculated from, or a data frame of queries and volume.

min_volume_prop

Minimum proportion.

min_n

Minimum number of queries. Only the n-grams with at least this number of queries will be included.

quanteda

If TRUE, will use the 'quanteda' package, which is recommended.

Value

A tibble of n-grams with a basic stats (number of queries and sum of search volumes). The n-grams are ordered descendingly by number of queries and search volume. Use dplyr::arrange to change order.