Re: [R] Referring to objects themselves

From: Janko Thyson <janko.thyson.rstuff_at_googlemail.com>
Date: Sun, 20 Mar 2011 01:51:37 +0100

You might want to check out Reference Classes (?SetRefClass). The object itself is stored in '.self' and can be referenced that way.

HTH,
Janko

-----Ursprüngliche Nachricht-----
Von: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Im Auftrag von Russ Abbott
Gesendet: Samstag, 19. März 2011 23:35
An: r-help_at_r-project.org
Betreff: [R] Referring to objects themselves

Is it possible to refer to an object from within a method, as in *this *in Java? I can't find anything about this in the documentation. Sorry if I missed it.

Thanks.

*-- Russ Abbott*
*_____________________________________________*
***  Professor, Computer Science*

* California State University, Los Angeles*

        [[alternative HTML version deleted]]



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.

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. Received on Sun 20 Mar 2011 - 01:00:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Mar 2011 - 02:00:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive