quanteda (version 2.1.2)

dictionary_edit: Conveniently edit dictionaries

Description

Provides convenient editing of dictionaries, using an interactive editor.

list_edit() and char_edit() provide lower-level convenience functions for interactive editing of (lists of) character objects. These can be useful for instance in editing stopword lists.

Usage

dictionary_edit(x, ...)

list_edit(x, ...)

char_edit(x, ...)

Arguments

x

a dictionary or (list of) character elements

...

(optional) arguments passed to utils::edit() (such as the choice of editor)

Value

an edited version of the input object

Examples

Run this code
# NOT RUN {
# edit the positive and negative entries from the LSD2015
# }
# NOT RUN {
my_posneg_dict <- dictionary_edit(data_dictionary_LSD2015[1:2])
# }
# NOT RUN {
# edit the system stopwords
# }
# NOT RUN {
my_stopwords <- stopwords("en", source = "snowball") %>%
    char_edit()
# }

Run the code above in your browser using DataLab