Learn R Programming

RTextTools (version 1.3.8)

NYTimes: a sample dataset containing labeled headlines from The New York Times.

Description

A sample dataset containing labeled headlines from The New York Times, compiled by Professor Amber E. Boydstun at the University of California, Davis.

Usage

data(NYTimes)

Arguments

format

A data.frame containing five columns.

1. Article_ID - A unique identifier for the headline from The New York Times.

2. Date - The date the headline appeared in The New York Times.

3. Title - The headline as it appeared in The New York Times.

4. Subject - A manually classified subject of the headline.

5. Topic.Code - A manually labeled topic code corresponding to the subject.

source

http://www.amberboydstun.com/

Examples

Run this code
# READ THE CSV
data <- read.csv(system.file("data/NYTimes.csv.gz",package="RTextTools"))
# ALTERNATIVELY, USE THE data() FUNCTION
data(NYTimes)

Run the code above in your browser using DataLab