load_doc_topics | R Documentation |
To ensure doc-topic or topic-word matrices are not recalculated every time you access them, you can use these functions. R's functional design makes memoizing a little cumbersome (or requires another package).
load_doc_topics(m) load_topic_words(m) load_top_words(m, n = NULL, weighting = NULL)
m |
|
a copy of m
with the data element in question loaded. In
principle the (list) copy is "shallow" and should not be expensive in time
or memory.
## Not run: m <- load_doc_topics(m) # precalculate doc-topics matrix doc_topics(m) # will return stored values ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.