iso.date: Create a subcorpus based on user specified date ranges

Description Usage Arguments Details Value Examples

Description

Create a reduced subcorpus containing documents produces within a defined date range.

Usage

1
iso.date(data.td, Beg.date, End.date)

Arguments

data.td

A tidy dataset

Beg.date

User specified beginning date

End.date

User specified end date

Details

This function establishes Beg.date as the beginning date and End.date as the ending date. It then identifies all rows of data whose associated dates fall on or between these dates. These identified rows of data within the corpus are then used to create a new subcorpus.

Date Formats

Dates must be input in one of the following formats:

"6aug2005"

"6august2005"

"08-06-2005"

"06-08-2005"

"2006-08-06"

Value

Creates a subcorpus containing only documents produced between Beg.date and End.date

Examples

1
2
Subcorpus <- iso.date(Articles, "12may2017","19may2017")
Subcorpus <- iso.date(Articles, "12-05-2017","19-05-2017")

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