poems | R Documentation |
Example data set containing a response vector Author
and a predictor
matrix with character frequencies for 28 english poems.
data(poems)
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.
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.
Lars Snipen.
poems
.
data(poems) y <- poems[,1] X <- as.matrix(poems[,-1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.