Gundala Viswanath
2010-Sep-29 14:51 UTC
[R] What's the meaning of "Species ~ ." in IRIS data
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 ? - P.Dubois
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
See ?lm and, more usefully, ?formula>>> Gundala Viswanath <gundalav at gmail.com> 29/09/2010 15:51 >>>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 ? - P.Dubois ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}