cite_design: Generate a citation

View source: R/cite_functions.R

cite_designR Documentation

Generate a citation

Description

Takes the output from generate or long_format, and generates a tibble that lists known references that should be cited. This function will only be useful if you use variables from the lexops dataset (lexops) with their original names.

Usage

cite_design(df, include = "design")

Arguments

df

Output from generate or long_format functions.

include

A string indicating which variables to include in the citation. This can be those specified by split_by and control_for ("design"), only those specified in split_by ("splits"), or only those specified by control_for ("controls"). Alternatively, this can be a character vector of the variables that should be cited, that were in the original dataframe. Default is "design".

Value

A tibble that lists measures and sources of data that should be cited (if known).

Examples



library(lexopsdata)

stim <- lexops |>
  split_by(BG.SUBTLEX_UK, 0.001:0.003 ~ 0.009:0.011) |>
  split_by(CNC.Brysbaert, 1:2 ~ 4:5) |>
  control_for(Zipf.SUBTLEX_UK, -0.2:0.2) |>
  control_for(Length) |>
  generate(n = 50, match_null = "balanced")

cite_design(stim)


LexOPS documentation built on Dec. 1, 2026, 5:06 p.m.