R/get_submappings.R
get_submappings.Rd
A utility function to get the descriptive data for the submappings of a metaphor (for the aggregated synonyms data or for a given synonym, if specified). This function is used in Rajeg (2019, Chapter 5 & 6).
get_submappings( metaphor = NULL, word = NULL, df = NULL, metaphor_var = "metaphors", submet_var = "submappings", synonym_var = "synonyms", lexunit_var = "lu" )
metaphor | character strings of regular expressions for the metaphor. |
---|---|
word | character strings of regular expressions for the happiness synonyms. |
df | the data frame ( |
metaphor_var | character string for the column name of the metaphor variable (i.e., |
submet_var | character string for the column name of the submapping variable (i.e., |
synonym_var | character string for the column name of the synonyms variable (i.e., |
lexunit_var | character string for the column name of the lexical unit variable (i.e., |
A tibble/data frame of the descriptive statistics of the submappings, namely the raw and relative (i.e. percentages of the) token and type frequencies.
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.
submet <- get_submappings(metaphor = "possessable object$", df = phd_data_metaphor)