Extract nouns from row and column labels
get_nouns.Rd
Nouns are the first part of a row-column label,
"a" in "a [b]".
Internally, this function calls get_pref_suff(which = "pref")
.
Usage
get_nouns(
labels,
inf_notation = TRUE,
notation = RCLabels::notations_list,
choose_most_specific = TRUE
)
Arguments
- labels
A list or vector of labels from which nouns are to be extracted.
- inf_notation
A boolean that tells whether to infer notation for
x
. Default isTRUE
. Seeinfer_notation()
for details.- notation
The notation type to be used when extracting nouns. Default is
RCLabels::notations_list
, meaning that the notation is inferred usinginfer_notation()
.- choose_most_specific
A boolean that tells whether to choose the most specific notation from
notation
when inferring notation. Default isTRUE
.