Description Usage Arguments Examples
The Reuters Corpus contains 10,788 news documents totaling 1.3 million words. The documents have been classified into 90 topics, and grouped into two sets, called "training" and "test"; thus, the text with fileid 'test/14826' is a document drawn from the test set.
1 2 3 4 5 6 7 8 9 | reuters_files(category = NULL, to_r = FALSE)
reuters_categories(..., to_r = FALSE)
reuters_raw(..., to_r = FALSE)
reuters_words(..., to_r = FALSE)
reuters_sents(..., to_r = FALSE)
|
category |
A category or a list of categories, see examples. |
to_r |
Whether to return results in R tidy format. |
... |
Additional parameters such as |
1 2 3 4 5 6 7 8 | ## Not run:
files <- reuters_files(to_r = TRUE)
categories <- reuters_categories() # all categories
reuters_categories(sample(files, 1))
reuters_words(categories = "barley")
reuters_files("barley")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.