Skip to content

Commit

Permalink
update-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 25, 2023
1 parent cb434c8 commit 590b818
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: TRUE
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
2 changes: 1 addition & 1 deletion R/bind_tf_idf.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#' library(janeaustenr)
#'
#' book_words <- austen_books() %>%
#' unnest_tokens(word, text) %>%
#' unnest_tokens(input = text, output = "word") %>%
#' count(book, word, sort = TRUE)
#'
#' book_words
Expand Down
2 changes: 1 addition & 1 deletion R/stm_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' library(janeaustenr)
#'
#' austen_sparse <- austen_books() %>%
#' unnest_tokens(word, text) %>%
#' unnest_tokens(input = text, output = "word") %>%
#' anti_join(stop_words) %>%
#' count(book, word) %>%
#' cast_sparse(book, word, n)
Expand Down
6 changes: 3 additions & 3 deletions R/unnest_tokens.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
#' d
#'
#' d %>%
#' unnest_tokens(word, txt)
#' unnest_tokens(input = txt, output = "word")
#'
#' d %>%
#' unnest_tokens(sentence, txt, token = "sentences")
#' unnest_tokens(input = txt, output = "sentence", token = "sentences")
#'
#' d %>%
#' unnest_tokens(ngram, txt, token = "ngrams", n = 2)
#' unnest_tokens(output = "ngram", input = txt, token = "ngrams", n = 2)
#'
#' d %>%
#' unnest_tokens(chapter, txt, token = "regex", pattern = "Chapter [\\\\d]")
Expand Down
2 changes: 1 addition & 1 deletion man/bind_tf_idf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stm_tidiers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/tidytext-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/unnest_tokens.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 590b818

Please sign in to comment.