var_to_url: Convert a variable name to a url reference.

View source: R/cite_functions.R

var_to_urlR Documentation

Convert a variable name to a url reference.

Description

Converts the name of a variable from LexOPS::lexops (e.g. "Zipf.SUBTLEX_US") into a url (usually doi).

Usage

var_to_url(var, default = "", standard_eval = FALSE)

Arguments

var

The variable name (non-standard evaluation)

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 TRUE, var should be a column name in quotation marks. If FALSE, the quotation marks are not necessary. Default = FALSE.

Value

A citation of a variable's source in APA format. Returns default if not recognised as a citeabile source.

Examples


var_to_url(Zipf.SUBTLEX_UK)

var_to_url("AROU.Glasgow_Norms", standard_eval = TRUE)

var_to_url(AoA.Kuperman)


JackEdTaylor/LexOPS documentation built on Oct. 11, 2024, 10:38 p.m.