Sample: Sample

Description Usage Arguments Format Details Methods Author(s) See Also

Description

Sample Creates Corpus from a Corpus sample.

Usage

1

Arguments

x

Corpus object.

n

Numeric of length one, or numeric vector of length equal to the number of documents in the Corpus.

stratify

Logical. If TRUE (default), samples will be taken from each document in accordance with the proportions or counts indicated in the 'n' parameter.

seed

Numeric used to initialize a pseudorandom number generator.

Format

An object of class R6ClassGenerator of length 24.

Details

Creates a Corpus object from a sample of a Corpus object.

Methods

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Corpus Sample Family of Classes: KFold, Sample0, Segment

Other CorpusStudio Family of Classes: CorpusStudio, KFold, Sample0, Segment, Split, TokenizerNLP, TokenizerQ, Tokenizer, Token


DecisionScients/NLPStudio documentation built on May 15, 2019, 12:51 p.m.