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)
convo | A |
---|---|
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 |
overwrite | Boolean. Whether to allow existing stub to be overwritten |
convo
object
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