View source: R/dictionary_edit.R
dictionary_edit | R Documentation |
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.
dictionary_edit(x, ...) list_edit(x, ...) char_edit(x, ...)
x |
a [dictionary] or (list of) character elements |
... |
(optional) arguments passed to [utils::edit()] (such as the choice of editor) |
an edited version of the input object
# edit the positive and negative entries from the LSD2015 ## Not run: my_posneg_dict <- dictionary_edit(data_dictionary_LSD2015[1:2]) ## End(Not run) # edit the system stopwords ## Not run: my_stopwords <- stopwords("en", source = "snowball") %>% char_edit() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.