Learn R Programming

mdsr (version 0.2.8)

Emails_train: Email Train

Description

The training dataset includes a set of email subject lines used for classification of whether the message is spam (unsolicited commercial content) or not. Many subject lines include subject matter inappropriate for classroom use. Given the volume of headlines containing such language (especially for spam == TRUE), user discretion is advised. This dataset is a random sample of 80% of the emails data.

The testing dataset is a random sample of 20% of the emails data.

Usage

Emails_train

Emails_test

Arguments

Format

A data frame with 5,526 rows and 3 variables:

ids

an integer vector

subjectline

a character vector

type

a character vector

A data frame with 1,382 rows and 3 variables:

See Also

Data Science in R, Nolan and Temple Lang (ISBN 978-1482234817), Ch. 3

Examples

Run this code
nrow(Emails_train)
nrow(Emails_test)

Run the code above in your browser using DataLab