get_lu_frame_table: Retrieve the (top-n most frequent) Lexical Units evoking the...

Description Usage Arguments Value References Examples

View source: R/get_lu_frame_table.R

Description

The function is designed to easily retrieve a tibble data frame of the top-n most frequent frame-evoking Lexical Units (LU) of the prominent metaphors discussed in Rajeg (2019, Chapter 5 and 6).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_lu_frame_table(
  metaphor = NULL,
  word = NULL,
  print_all = FALSE,
  top_n = FALSE,
  limit = 10,
  df = NULL,
  metaphor_var = "metaphors",
  frame_var = "source_frames",
  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").

frame_var

character string for the column name of the source frame variable (i.e., "source_frames").

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/data frame of the descriptive statistics of the LUs and the frames, including the gloss of the LUs.

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
# for the aggregated data
get_lu_frame_table(metaphor = "possessable",
                   top_n = TRUE,
                   limit = 20,
                   df = phd_data_metaphor)

# for a specific synonym
get_lu_frame_table(metaphor = "possessable",
                   word = "^bahagia$",
                   top_n = TRUE,
                   limit = 20,
                   df = phd_data_metaphor)

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