keyword.corpus: Create a subcorpus based on a user specified keyword

Description Usage Arguments Details Value Examples

Description

Create a reduced subcorpus of documents which contain a specified keyword.

Usage

1
keyword.corpus(data.td, keyword)

Arguments

data.td

A tidy dataset

keyword

A user specified keyword

Details

This function will create a new subcorpus of documents, from the original corpus, in which each document contains the user specified keyword. All other documents will be excluded from this subcorpus.

Value

Creates a subcorpus with only documents containing keyword

Examples

1
hurricane <- keyword.corpus(Articles, "hurricane")

JSmith146/CoRpEx documentation built on May 17, 2019, 10:11 p.m.