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

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

stubs <- list(letters[1:3], letters[4:5], letters[6:7]) convo <- create_convo(stubs) add_convo_stub(convo, 1, "z")
#> Level 1 #> - a #> - b #> - c #> - z #> Level 2 #> - d #> - e #> Level 3 #> - f #> - g