poems: Poetry data

poemsR Documentation

Poetry data

Description

Example data set containing a response vector Author and a predictor matrix with character frequencies for 28 english poems.

Usage

data(poems)

Format

A data set of 28 samples. The first column Author is a vector of class labels and the remaining columns is a predictor matrix X with 30 predictor variables.

Details

The vector Author is a factor with 3 levels, Blake, Eliot and Shakespeare, indicating the author of each poem (sample). The remaining columns can be used as a predictor matrix. Each row contains the relative character frequencies of 30 characters counted in each poem.

Author(s)

Lars Snipen.

See Also

poems.

Examples

data(poems)
y <- poems[,1]
X <- as.matrix(poems[,-1])


larssnip/mpda documentation built on March 28, 2022, 3:37 p.m.