Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-28 Thread Rita Carreira
rre...@hotmail.com > Subject: Re: [R] What does class "call" mean? How do I make class "formula" > into a "call"? > > This is really a misleading subject: it is already a call! From > ?class > > Many R objects have a ‘class’ attribute, a character v

Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-26 Thread peter dalgaard
On Jun 26, 2011, at 00:10 , David Winsemius wrote: > > On Jun 25, 2011, at 4:33 PM, peter dalgaard wrote: > " >> >> I.e., an unevaluated formulae expression (as in quote(y~x)) is class "call", >> as is an unclassed formula object. So it is pretty easy to have objects of >> class "formula" ver

Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-25 Thread David Winsemius
On Jun 25, 2011, at 4:33 PM, peter dalgaard wrote: On Jun 25, 2011, at 15:24 , David Winsemius wrote: On Jun 24, 2011, at 6:12 PM, StellathePug wrote: Hello R Users! I have a list called "tabs" that I would like to have the same structure as my list "eqSystem." The two look like they ha

Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-25 Thread peter dalgaard
On Jun 25, 2011, at 15:24 , David Winsemius wrote: > > On Jun 24, 2011, at 6:12 PM, StellathePug wrote: > >> Hello R Users! >> I have a list called "tabs" that I would like to have the same structure as >> my list "eqSystem." The two look like they have the same structure but they >> are differ

Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-25 Thread David Winsemius
On Jun 24, 2011, at 6:12 PM, StellathePug wrote: Hello R Users! I have a list called "tabs" that I would like to have the same structure as my list "eqSystem." The two look like they have the same structure but they are different because when I look at their attributes, class(eqSystem[[1]

[R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-25 Thread StellathePug
Hello R Users! I have a list called "tabs" that I would like to have the same structure as my list "eqSystem." The two look like they have the same structure but they are different because when I look at their attributes, class(eqSystem[[1]]) is "call" but class(tabs[[1]]) is "formula". I want to

Re: [R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-24 Thread Bert Gunter
Well, this is kind of complicated. The first place you should go for help is not this list, but the R docs. Specfically ?call. This assumes familiarity with R's (S3) class system and language structure, however.. For this, I suggest ?UseMethod and consulting the R Language Definition Manual. Perh

[R] What does class "call" mean? How do I make class "formula" into a "call"?

2011-06-24 Thread Rita Carreira
I have a list called "tabs" that I would like to have the same structure as my list "eqSystem." The two look like they have the same format but they are different because when I look at their attributes, class(eqSystem[[1]]) is "call" but class(tabs[[1]]) is "formula". I want to have class(tabs