dca_top_collex: Retrieve the distinctive collocates/collexemes of...

Description Usage Arguments Value Examples

View source: R/fye_dca.R

Description

A helper function to extract distinctive collocates/collexemes for construction/word X from the output of collex_fye_dca.

Usage

1
dca_top_collex(dca_res, dist_for = NULL, top_n = 20L)

Arguments

dca_res

The output of collex_fye_dca

dist_for

Character vectors of names of the contrasted constructions, or either "a"/"A", or "b"/"B". This argument indicate the preference of the collexeme/collocates (i.e. whether to Construction A or B). Construction A is the name for the second column from the output of collex_fye_dca. Construction B is the name for the third column from the output of collex_fye_dca.

top_n

Integer for the top-n distinctive collocates/collexemes. The default is 20L.

Value

A data frame of distinctive collocates/collexemes for construction X.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# distinctive for CxN B
dca_top_collex(dca_res, "b")

# distinctive for CxN A
dca_top_collex(dca_res, "a")

## End(Not run)

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