Description Usage Arguments Value Author(s) Examples
lsa package take "Term Document Matrix" as input, so it is needed to create a 'tdm' for Abstracts and tdm_for_lsa
do the same as it find out the frequency of given term in each abstract and each abstract is considered as separate document. It prepares term document matrix of terms in the 'abstracts' corpus
1 | tdm_for_lsa(object, y)
|
object |
An S4 object of class 'Abstracts' |
y |
a character vector specifying the terms |
a Term Document Matrix (Numerical matrix) containing the raw frequencies of given terms in each abstract.
Jyoti Rani
1 2 3 | ## Not run: y = c("insulin", "inflammation", "obesity")
tdm_for_lsa(myabs,y)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.