[R] What's the meaning of "Species ~ ." in IRIS data

Duncan Murdoch murdoch.duncan at gmail.com
Wed Sep 29 16:57:46 CEST 2010


  On 29/09/2010 10:51 AM, Gundala Viswanath wrote:
> I am refering to a function call like this:
>
> >data(iris)
> >x<- svmlight(Species ~ ., data = iris)
>
> I tried to see the content of it by typing:
>
> >  Species ~ .
>
> but it gives nothing.  How can I see it's content ?

str(Species ~ .) will tell you that it's a formula.  The help page for 
the svmlight() function should tell you how it is used.

Duncan Murdoch



More information about the R-help mailing list