get_lu_table: Retrieve the (top-n most frequent) Lexical Units of a...

Description Usage Arguments Value References Examples

View source: R/get_lu_table.R

Description

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

Usage

1
2
3
4
5
6
7
8
get_lu_table(
  metaphor = "regular expressions",
  top_n_only = TRUE,
  top_n_limit = 10,
  df = NULL,
  submapping_perc = FALSE,
  incl_submappings = FALSE
)

Arguments

metaphor

regular expressions for the relevant metaphor.

top_n_only

logical; the default is TRUE with the number specified in top_n_limit argument. If FALSE, it prints all the LU for the metaphor.

top_n_limit

integer; how many most frequent LU should be printed? The default is 10.

df

the data frame for the thesis (phd_data_metaphor). This argument is not put first because the main attention when using the function is on varying the metaphor (hence, coming first) rather than on varying the database.

submapping_perc

logical; wheter to include the percentages of the LU by submappings. If TRUE, the function only print out the percentages of the LU by submappings. To include the submapping types, specify the incl_submappings argument to TRUE as well (the default is FALSE).

incl_submappings

logical; whether to include the submappings inferred from the LU (TRUE) or not (FALSE – the default).

Value

A tbl_df.

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
get_lu_table(metaphor = "desired goal$", df = phd_data_metaphor)

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