Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monogenea/031baf45899f35c6c842d98bcb08adaf to your computer and use it in GitHub Desktop.
Save monogenea/031baf45899f35c6c842d98bcb08adaf to your computer and use it in GitHub Desktop.
# Load caret, install if necessary
library(caret)
arcene <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/arcene/ARCENE/arcene_train.data",
sep = " ",
colClasses = c(rep("numeric", 10000), "NULL"))
# Add the labels as an additional column
arcene$class <- factor(scan("https://archive.ics.uci.edu/ml/machine-learning-databases/arcene/ARCENE/arcene_train.labels",
sep = "\t"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment