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

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Sep 29 17:07:46 CEST 2010


On Wed, 29 Sep 2010, Duncan Murdoch wrote:

> 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.

If this is svmlight in klaR, it seems not to.  But ?formula will 
definitely tell you how to interpret the formula.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list