Skip to content
Prev 22137 / 63424 Next

standardization of slot access

On Tue, 26 Sep 2006, Sebastian P. Luque wrote:

            
I find that slot() is useful in explaining to users what is going on. I 
also find that used inside s/lapply that say function(x) slot(x, "y") is a 
natural way to access contents of lists of objects. So I wouldn't conclude 
that it is only rarely used, and would recommend its use in explaining to 
students/users what is going on in new-style objects.

Roger