assoc_prepare_dca: DCA input table

Description Usage Arguments Value Examples

View source: R/assoc_prepare_dca.R

Description

A function to generate input table for performing Distinctive Collexeme Analysis.

Usage

1
assoc_prepare_dca(assoc_tb_df = NULL)

Arguments

assoc_tb_df

The nested tibble output from assoc_prepare

Value

A tibble with columns for collocates, frequency of the collocates with Construction/Word A and B, other frequencies in the cross-tabulation (i.e. Cell C and D), and the Expected frequencies of the collocates with Construction/Word A as the reference item.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# run assoc_prepare() first from the output of colloc_leipzig()
 assoc_tb <- assoc_prepare(colloc_out = colloc_leipzig_output,
                           window_span = "r1",
                           per_corpus = FALSE,
                           stopword_list = NULL,
                           float_digits = 3L)

# then run assoc_prepare_dca()
dca_tb <- assoc_prepare_dca(assoc_tb)

## End(Not run)

gederajeg/collogetr documentation built on April 16, 2020, 11:58 a.m.