View source: R/cite_functions.R
var_to_measure | R Documentation |
Converts the name of a variable from LexOPS::lexops
(e.g. "fpmw.SUBTLEX_US") into the name of its measure (e.g. "frequency per million words").
var_to_measure(
var,
first_cite = TRUE,
default = "",
title_caps = FALSE,
include_pronunciations = TRUE,
standard_eval = FALSE
)
var |
The variable name (non-standard evaluation) |
first_cite |
Logical; if |
default |
The character string that should be returned if the variable does not have a known cietable source |
title_caps |
Logical; use title capitalisation (e.g. "Familiarity Ratings" rather than "famliarity ratings"). Default is |
include_pronunciations |
Logical; allow pronunciation transpositions as measures (e.g. CMU.1letter). Default is |
standard_eval |
Logical; bypasses non-standard evaluation. If |
A citation of a variable's source in APA format. Returns default
if not recognised as a citeabile source.
var_to_measure(Zipf.SUBTLEX_UK)
var_to_measure("AROU.Glasgow_Norms", standard_eval = TRUE)
var_to_measure(AoA.Kuperman, first_cite = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.