Description Usage Arguments Details Value Author(s) See Also
View source: R/B01.createZipf.R
createZipfObject
Prepares zipf objects for a document
1 | createZipfObject(document, vgc, numSamples = 1000)
|
document |
- the document and meta data to be analyzed |
vgc |
- the vocabulary growth curve data |
numSamples |
- the number of samples, default = 1000 |
This function takes as its parameters, the list containing the document and its meta data, a vocabulary growth curve, the number of samples (default = 1000), and returns a zip object used for downstream analysis. The zipf object includes:
nTokensNumber of tokens in the document
docTflDocument term frequency list
docSpcDocument frequency spectrum object
docLnreLarge number of rare elements (LNRE) object
docEmpVgcEmpirical (observed) vocabulary growth curve
docIntVgcInterpolated (smoothed) vocabulary growth curve
goodnessLNRE goodness of fit#'
zipfObjects - the zipf object used for analysis and plotting
John James, j2sdatalab@gmail.com
createVGC
createGrowthObject
createZipf
text2spc.fnc
lnre
lnre.spc
N
V
EV
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.