calculateIdf | R Documentation |
This is a summarise operation. for concepts given a set of samples given a dataframe whose grouping defines the concept to calculate IDF stats for
calculateIdf(groupedDf, sampleVars, countVar = NULL, totalSamples = NA)
groupedDf |
a dataframe whose grouping defines the "term" for which we calulate the IDF |
sampleVars |
the column(s) that contains the unique id of a sample, i.e. traditionally a "document" but could be a patient. escaped by vars(...) |
countVar |
(optional) a field that contains a count. If this is given then it is assumed that the concept & document combinations are unique |
totalSamples |
if the data is incomplete (not every document has a concept in it then the expected number fo samples can be specified here) |
a data frame with idf stats for each concept in each group (i.e. document)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.