powered by
Read datasets in SVM-Light sparse data format:
: ... :\n
qid: : ... :\n
: ... :# Optional comment or extra data, following the optional "#" symbol.\n
read.svmlight(file)
read.svmlight
NULL
"read.svmlight"
write.svmlight
data(irismod) x <- parse_formula(Is.Virginica ~ ., irismod) tmp <- tempfile() write.svmlight(x$labels, x$data, file = tmp) irismod.svmlight <- read.svmlight(tmp) unlink(tmp)
Run the code above in your browser using DataLab