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.

Usage

cite_design(df, include = "design")

Arguments

df

Output from generate() or long_format()

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


stim <- lexops |>
  dplyr::filter(PK.Brysbaert >= .75) |>
  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)


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