Learn R Programming

labourR (version 1.0.0)

get_stopwords: Retrieve stopwords

Description

The functions retrieves stopwords from the stopwords package using the ISO-639-1 encoding. For miscellaneous languages data_stopwords_misc are used.

Usage

get_stopwords(code)

Arguments

code

A string with the language code of the stopwords.

Value

Character vector with the stopwords or NULL if the language code is unknown.

Examples

Run this code
# NOT RUN {
get_stopwords("en")[1:10]

# }

Run the code above in your browser using DataLab