mdca_attr: Attracted items from MDCA

Description Usage Arguments Value References Examples

View source: R/mdca_attr_repel.R

Description

A function to retrieve list of distinctive or attracted items for a construction from the results of mdca.

Usage

1
2
3
4
5
6
7
8
9
mdca_attr(
  df = NULL,
  filter_by = "cxn",
  cxn_var = "synonyms",
  cxn_type = NULL,
  coll_var = NULL,
  coll_type = NULL,
  min_assocstr = 2
)

Arguments

df

output data frame from mdca.

filter_by

character string indicating whether the output of mdca is filtered according to the construction variable (i.e. "cxn") or the collexemes/collocates variable (i.e. "colloc"). If it is left NULL (the default), the data is filtered according to the value specified in the min_assocstr argument.

cxn_var

character string for the column name of the construction variable (i.e., "synonyms").

cxn_type

character strings of regular expressions for the HAPPINESS synonyms.

coll_var

character string for the column name of the metaphor variable (i.e., "metaphors").

coll_type

character strings of regular expressions for the conceptual metaphors.

min_assocstr

numeric threshold for the minimum collostruction strength. By default it is set to 2.

Value

A tibble/data frame

References

Rajeg, G. P. W. (2019). Metaphorical profiles and near-synonyms: A corpus-based study of Indonesian words for HAPPINESS. PhD Thesis. Monash University. Melbourne, Australia. https://doi.org/10.26180/5cac231a97fb1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# for distinctive metaphors
mdca_res <- mdca(df = phd_data_metaphor,
                 cxn_var = "synonyms",
                 coll_var = "metaphors",
                 correct_holm = TRUE,
                 concise_output = TRUE,
                 already_count_table = FALSE,
                 assocstr_digits = 3)
# retrieve distinctive/attracted metaphors for "kebahagiaan".
mdca_attr(df = mdca_res,
          filter_by = "cxn",
          cxn_var = "synonyms",
          cxn_type = "kebahagiaan",
          min_assocstr = 2)

gederajeg/happyr documentation built on Dec. 27, 2021, 3:24 a.m.