8000 Fix fig reference · codingbooks/tidy-text-mining@0a745d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a745d0

Browse files
committed
Fix fig reference
1 parent 38014d6 commit 0a745d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

05-document-term-matrices.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ DTM objects cannot be used directly with tidy tools, just as tidy data frames ca
3737
* `tidy()` turns a document-term matrix into a tidy data frame. This verb comes from the broom package [@R-broom], which provides similar tidying functions for many statistical models and objects.
3838
* `cast()` turns a tidy one-term-per-row data frame into a matrix. tidytext provides three variations of this verb, each converting to a different type of matrix: `cast_sparse()` (converting to a sparse matrix from the Matrix package), `cast_dtm()` (converting to a `DocumentTermMatrix` object from tm), and `cast_dfm()` (converting to a `dfm` object from quanteda).
3939

40-
As shown in Figure \@ref(fig:flowchart), a DTM is typically comparable to a tidy data frame after a `count` or a `group_by`/`summarize` that contains counts or another statistic for each combination of a term and document.
40+
As shown in Figure \@ref(fig:tidyflowchartch5), a DTM is typically comparable to a tidy data frame after a `count` or a `group_by`/`summarize` that contains counts or another statistic for each combination of a term and document.
4141

4242
### Tidying DocumentTermMatrix objects
4343

0 commit comments

Comments
 (0)
0