Obtains the size of a certain number of predefined corpora. The total size of a corpus is important for calculating term frequencies.

corpus_size(corpus = c("taxon_annotations", "taxa", "gene_annotations",
"genes"))

## Arguments

corpus the name of the corpus, currently one of "taxon_annotations", "taxa", "gene_annotations", and "genes". (At present "gene_annotations" is pending support by the Phenoscape API.) Unambiguous abbreviations are acceptable.

## Value

the size of the specified corpus as an integer number.

## Details

Corpus sizes are cached per session after they have first been obtained. Thus, if the Phenoscape KB changes, a session needs to be restarted to have those changes be reflected.

## Examples

corpus_size("taxa")
#> [1] 785corpus_size("taxon_annotations")
#> [1] 809892