Description Usage Arguments Examples
clean_news
wrangles the messy data fetched by get_news
,
returning a tidy tibble with sensible defaults.
1 2 3 |
data |
Tbl, returned from |
min_nchar |
Integer, specifying the minimum number of characters of articles to be kept in the corpus. |
as_date |
Logical, indicating whether dates should be transformed to class "Date". |
drop_vars |
Logical, indicating whether all variables (other than
|
to_lower |
Logical, indicating whether the |
distinct |
Logical, indicating whether only articles with either
distinct |
drop_na |
Logical, indicating whether to drop rows containing missing values. |
tif_corpus |
Logical, indicating whether the tibble should be a TIF valid corpus. |
1 2 3 4 5 6 | ## Not run:
clean_news(data = my_tbl)
clean_news(my_tbl, min_nchar = 500, tif_corpus = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.