set_citation: Set the citation of a design

View source: R/set_citation.R

set_citationR Documentation

Set the citation of a design

Description

Set the citation of a design

Usage

set_citation(
  design,
  title = NULL,
  author = NULL,
  year = NULL,
  description = "Unpublished research design declaration",
  citation = NULL
)

Arguments

design

A design typically created using the + operator

title

The title of the design, as a character string.

author

The author(s) of the design, as a character string.

year

The year of the design, as a character string.

description

A description of the design in words, as a character string.

citation

(optional) The preferred citation for the design, as a character string, in which case title, author, year, and description may be left unspecified.

Value

a design object with a citation attribute

Examples


design <-
declare_model(data = sleep) +
  declare_sampling(S = complete_rs(N, n = 10))

design <-
  set_citation(design,
               author = "Lovelace, Ada",
               title = "Notes",
               year = 1953,
               description = "This is a text description of a design")

cite_design(design)


DeclareDesign documentation built on June 21, 2022, 1:05 a.m.