[R] The 'variables' attribute of terms()

Peter Ehlers ehlers at ucalgary.ca
Wed Feb 10 06:07:43 CET 2010


bluesky315 at gmail.com wrote:
> I got the following output when I try the code at the end.
> 
>> str(attr(terms1, 'variables'))
>  language list(skips, Panel, Opening)
>> class(attr(terms1, 'variables'))
> [1] "call"
> 
> I checked ?call, where 'call' is a function. Could somebody let me
> know what a 'call' class is and what 'language' is?
> 

See Chapter 2 in the R Language Definition manual.

  -Peter Ehlers

> ##########
> form1=skips ~ Panel * Opening
> terms1=terms(form1)
> str(attr(terms1, 'variables'))
> class(attr(terms1, 'variables'))
> 
> ______________________________________________
> 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.
> 
> 

-- 
Peter Ehlers
University of Calgary



More information about the R-help mailing list