Modify nouns in labels
modify_nouns.RdThis function modifies the nouns of row and column labels.
The length of new_nouns must be the same as the length of labels.
Usage
modify_nouns(
labels,
new_nouns,
inf_notation = TRUE,
notation = RCLabels::notations_list,
choose_most_specific = FALSE
)Arguments
- labels
The row and column labels in which the nouns will be modified.
- new_nouns
The new nouns to be set in
labels. Must be same length aslabels.- inf_notation
A boolean that tells whether to infer notation for
labels. Default isTRUE. Seeinfer_notation()for details.- notation
The notation type to be used when extracting prepositions. 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
notationwhen inferring notation. Default isFALSEso that a less specific notation can be inferred. In combination withRCLabels::notations_list, the default value ofFALSEmeans thatRCLabels::bracket_notationwill be selected instead of anything more specific, such asRCLabels::from_notation.