View source: R/cite_functions.R
var_to_source | R Documentation |
Converts the name of a variable from LexOPS::lexops
(e.g. "Zipf.SUBTLEX_US") into an APA-style citation (e.g. "SUBTLEX-US (Brysbaert & New, 2009)").
var_to_source(var, first_cite = TRUE, default = "", 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 citeable source |
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_source(Zipf.SUBTLEX_UK)
var_to_source("AROU.Glasgow_Norms", standard_eval = TRUE)
var_to_source(AoA.Kuperman, first_cite = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.