kwsearch: Time series line plot of the frequency of documents...

Description Usage Arguments Details Value Examples

Description

Produces a time series plot of the frequency of documents within a corpus containing a specified keyword. Points are delineated by publication date.

Usage

1
kwsearch(data.td, keyword)

Arguments

data.td

A tidy dataset

keyword

A user defined keyword

Details

This function first identifies each document which contains the user specified keyword and omits all those which do not. It then identifies dates listed in the date column and sums the number of documents associated with each identified calendar date, generating a line plot to represent these findings. This output is useful in highlighting increases in document production surrounding a specific topic, which may identify blocks of time in which interesting events may have occurred. Using the 'iso.date' function, these observed increases can be converted into subset corpuses used for further analysis.

Value

Time series line plot of documents in data.td which contain keyword by day

Examples

1
2
kwsearch(Articles,"hurricane")
 

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