Peter Dalgaard wrote:
Wacek Kusnierczyk wrote:
Martin Morgan wrote:
Gabor Grothendieck wrote:
Try this:
setClass("zoo")
[1] "zoo"
'zoo' is I guess intended as an S3 class (from library zoo), so
setOldClass('zoo') is appropriate. Otherwise, setClass("zoo") creates a
new vi
Wacek Kusnierczyk wrote:
Martin Morgan wrote:
Gabor Grothendieck wrote:
Try this:
setClass("zoo")
[1] "zoo"
'zoo' is I guess intended as an S3 class (from library zoo), so
setOldClass('zoo') is appropriate. Otherwise, setClass("zoo") creates a
new virtual class.
setCl
Martin Morgan wrote:
Gabor Grothendieck wrote:
Try this:
setClass("zoo")
[1] "zoo"
'zoo' is I guess intended as an S3 class (from library zoo), so
setOldClass('zoo') is appropriate. Otherwise, setClass("zoo") creates a
new virtual class.
setClass("Work",representati
Gabor Grothendieck wrote:
> Try this:
>
>> setClass("zoo")
> [1] "zoo"
'zoo' is I guess intended as an S3 class (from library zoo), so
setOldClass('zoo') is appropriate. Otherwise, setClass("zoo") creates a
new virtual class.
>> setClass("Work",representation=(x="zoo"))
This syntax representati
Thank you Gabor. It works. I read a bit more and understood what you're doing.
One more question, I want to know more about .Data property of a
class. I know that it defines type of the class when asking typeof.
But I don't know much how to use them. Would you mind pointing me to
some reference an
Try this:
> setClass("zoo")
[1] "zoo"
> setClass("Work",representation=(x="zoo"))
[1] "Work"
On Sat, Jun 27, 2009 at 10:01 PM, R_help Help wrote:
> Hi,
>
> When I define a new class (through setClass), members defined in
> representation argument doesn't seem to like a class. For example, if
> I
Hi,
When I define a new class (through setClass), members defined in
representation argument doesn't seem to like a class. For example, if
I do the following:
setClass("NotWork",representation=(x="zoo"))
It seems to me that representation members will take in only primitive
type to R. Is there a
7 matches
Mail list logo