Re: [R] question regarding new class

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 01 Jun 2005 - 16:15:24 EST

Laura Holt wrote:

> Hi R people:
>
> I have created a new class for a project that I am working on. It works
> fine.
>
> Just one question, please: When I access the slots, is there any way
> that I could use
> x$Name instead on x@Name, please? Or is it that way by design, please?

This is by design, x is not a list but of class ....

Insetad, you can use slot(), of course or define special exttractor functions fo your particular class.

Uwe Ligges

> Thanks.
>
> Laura Holt
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 01 16:18:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:18 EST