calculateCooccurrenceMI: Calculate a co-occurrence matrix for concepts associated with...

View source: R/tidyTFIDF.R

calculateCooccurrenceMIR Documentation

Calculate a co-occurrence matrix for concepts associated with a grouping

Description

The grouped dataframe here acts as a "Document" from the perpective of the co-occurrence but might be a person. For the cose of co-occurrence we are only interested in the existence of a term in a document and not the counts of either.

Usage

calculateCooccurrenceMI(
  groupedDf,
  conceptIdVar,
  filteredIdfDf = NA,
  bigResult = FALSE
)

Arguments

groupedDf

a dataframe whose grouping defines the "document" and contains all observations of the terms in that document

conceptIdVar

a field that contains the unique id of a "term"

filteredIdfDf

an optional data frame containing idf information from this or another corpus. It is recommended that this is a heavily filtered list as the result will be the square of the size of this

bigResult

are you expecting a big result?

Value

a data frame with co-occurrence stats for each concept in filteredIdf (i.e. document)


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.