Skip to contents

Parse string into individual terms (as tibble)

Usage

pivot_term_long(term, sep = "[^[:alnum:]]+")

Arguments

term

Value

tibble of unique terms and term

Examples

pivot_term_long(term = "A large size in stockings is hard to sell.")
#>   unique_items                                       term
#> 1            A A large size in stockings is hard to sell.
#> 2        large                                       <NA>
#> 3         size                                       <NA>
#> 4           in                                       <NA>
#> 5    stockings                                       <NA>
#> 6           is                                       <NA>
#> 7         hard                                       <NA>
#> 8           to                                       <NA>
#> 9         sell                                       <NA>