Description Usage Arguments Format Value Author(s) See Also
SampleCorpus
Encapsulates the command to sample a Corpus object.
1 |
x |
Corpus or Token Object |
corpusStudio |
CorpusStudio object |
name |
Character string containing the name to assign to the Token object. |
n |
Numeric. If n <= 1, the proportion of 'unit' to sample. If n>1, the number of 'unit' to sample. |
stratify |
Logical. Applies to Corpus objects with with two or more documents. If TRUE, stratified sampling will occur within each document; otherwise, samples will be taken from a single combined document. Default is TRUE |
replace |
Logical. If TRUE, samples will be taken with replacement. Default is FALSE. |
seed |
Numeric. Seed for sampling reproducibility. Default is NULL |
An object of class R6ClassGenerator
of length 24.
Token object
John James, jjames@dataScienceSalon.org
Other FileStudio Command Classes: CopyFileSet
,
MoveFileSet
, ReadCorpus
,
RepairFileSet
, Source
,
WriteCorpus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.