get_meta_freq_profiles: Select a (set of) frequency profile column(s) for a metaphor

Description Usage Arguments Value References Examples

View source: R/get_meta_freq_profile.R

Description

Select a (set of) frequency profile column(s) for a metaphor

Usage

1
2
3
4
5
6
get_meta_freq_profiles(
  metaphor = NULL,
  ...,
  metaphor_var = "metaphors",
  df = NULL
)

Arguments

metaphor

character string of regular expressions for the metaphors.

...

any bare variable/column name of the frequency profiles from ttr function.

metaphor_var

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

df

data frame storing the results of ttr.

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
# perform ttr
ttr_metaphor <- ttr(phd_data_metaphor,
                    schema_var = "metaphors",
                    lexunit_var = "lu",
                    float_digits = 2)

# retrieve the profile
get_meta_freq_profiles("food", # regex for the metaphor
                       token, type_lu, type_per_token_lu, # inputs for the dot-dot-dot (...)
                       metaphor_var = "metaphors",
                       df = ttr_metaphor)

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