[R] about libsvm

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri Oct 22 18:58:50 CEST 2010


Hi,

On Fri, Oct 22, 2010 at 12:27 PM, Neeti <nikkihathi at gmail.com> wrote:
>
> thank you so much.. but i could not understand which parameter should i use?

Sorry, I can't really help you unless you're a lot more specific about
what you are having problems with.

Look at the "Examples" section in the help for the svm function:

R> ?svm

Look at what the data inputs to the svm function look like:

R> head(iris)

And other stuff

If you are having problems with R's forumla "interface" (Species ~ .),
look at the help for formula:

R> ?formula

You can skip the formula interface and pass the svm function an x and
y variables for your data:

* x is a matrix of your data (rows are separate observations, columns
are the features/dimensions for each observation) and y is a vector of
labels (as long as there are rows in x).

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the R-help mailing list