get_lu_submappings_table: Retrieve the frequency of Lexical units and the evoked...

Description Usage Arguments Value References Examples

View source: R/get_lu_submappings_table.R

Description

The function generates a table of frequency and percentages of Lexical units evoking certain submappings of a metaphor.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_lu_submappings_table(
  metaphor = NULL,
  word = NULL,
  print_all = FALSE,
  top_n = FALSE,
  limit = 10,
  df = NULL,
  metaphor_var = "metaphors",
  submet_var = "submappings",
  synonym_var = "synonyms",
  lexunit_var = "lu",
  lexunit_gloss_var = "lu_gloss"
)

Arguments

metaphor

regular expressions for the relevant metaphor.

word

character strings of regular expressions for the HAPPINESS synonyms.

print_all

logical; print all output

top_n

logical; limit to the top-n LUs

limit

integer; maximum rows to be printed from the top-n LUs

df

the data frame (phd_data_metaphor).

metaphor_var

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

submet_var

character string for the column name of the submapping variable (i.e., "submappings").

synonym_var

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

lexunit_var

character string for the column name of the lexical unit variable (i.e., "lu").

lexunit_gloss_var

character string for the column name of the gloss of the lexical units (i.e., "lu_gloss").

Value

A tibble containing the submappings, LUs and the glosses, frequency of each LUs of the metaphor, percentage of each LUs in the metaphor, and percentage of each LUs by the evoked submappings.

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
# for all synonyms
get_lu_submappings_table(metaphor = "liquid in a container",
                         df = phd_data_metaphor)

# for \emph{kegembiraan} 'joy'
get_lu_submappings_table(metaphor = "liquid in a container",
                         word = "kegembiraan",
                         df = phd_data_metaphor)

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