add_convo_stub: Add new stub to convo object

Description Usage Arguments Value Examples

View source: R/create.R

Description

This function adds new stubs to a controlled vocabulary or overwrites existing stubs.

Usage

1
add_convo_stub(convo, level, stub, desc = NA, valid = NA, overwrite = FALSE)

Arguments

convo

A convo object

level

Level at which to add new entry

stub

Character. New stub to add to controlled vocabulary at given level

desc

Character. Optional human-readable description of stub

valid

Character vector. Optional pointblank validation checks for stub

overwrite

Boolean. Whether to allow existing stub to be overwritten

Value

convo object

Examples

1
2
3
stubs <- list(letters[1:3], letters[4:5], letters[6:7])
convo <- create_convo(stubs)
add_convo_stub(convo, 1, "z")

emilyriederer/convo documentation built on Oct. 5, 2021, 4:08 p.m.