paste_noun_pp | R Documentation |
This function recombines (unsplits) row or column labels that have
been separated by split_noun_pp()
.
paste_noun_pp(
splt_labels,
notation = RCLabels::bracket_notation,
squish = TRUE
)
splt_labels |
A vector of split row or column labels, probably created by |
notation |
The notation object that describes the labels.
Default is |
squish |
A boolean that tells whether to remove extra spaces in the output of |
Recombined row and column labels.
labs <- c("a [of b in c]", "d [from Coal mines in USA]")
labs
split <- split_noun_pp(labs)
split
paste_noun_pp(split)
# Also works in a data frame
df <- tibble::tibble(labels = c("a [in b]", "c [of d into USA]",
"e [of f in g]", "h [-> i in j]"))
recombined <- df %>%
dplyr::mutate(
splits = split_noun_pp(labels),
recombined = paste_noun_pp(splits)
)
all(recombined$labels == recombined$recombined)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.