svmlight(x, ...)
## S3 method for class 'default':
svmlight(x, grouping, temp.dir = NULL, pathsvm = NULL, del = TRUE,
svm.options = NULL, prior = NULL, out = FALSE,...)
## S3 method for class 'data.frame':
svmlight(x, ...)
## S3 method for class 'matrix':
svmlight(x, grouping, ..., subset, na.action = na.fail)
## S3 method for class 'formula':
svmlight(formula, data = NULL, ..., subset, na.action = na.fail)
formula
is not given).formula
is not given).groups ~ x1 + x2 + ...
.
That is, the response is the grouping factor and the right hand side specifies the (non-factor) discriminators.formula
are preferentially to be taken.NA
s are
found. The default action is for the procedure to fail. An
alternative is na.omit
, which leads to rejection of cases with
missing valuespredict.svmlight
,svm
,## Only works if the svmlight binaries are in the path.
data(iris)
x <- svmlight(Species ~ ., data=iris)
Run the code above in your browser using DataLab