Re: [Rd] (PR#9202) Re: Bugs with partial name matching

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Wed 06 Sep 2006 - 07:27:44 GMT

>>>>> "Anil" == Anil Maliyekkel <amaliy1@uic.edu>
>>>>> on Tue, 5 Sep 2006 22:50:30 -0500 writes:

 [...................]
 [...................]

    Anil> Going back to the original partial replacement     Anil> problem, is there anyway to turn off partial matching,

One way would be to use S4 classes (and '@') instead of lists (and '$').
That has other advantages {?validObject; methods,..}, but also can be a drawback to you since you need to know in advance what "components" (called "slots" for S4 objects) your object will be allowed to contain.

    Anil> or to selectively apply exact matching when trying to
    Anil> access a single element?  I can get the desired single
    Anil> element match using the convoluted syntax D["ABC"]
    Anil> [[1]] and perform partial replacement operations on a
    Anil> new column.  However, it would be nice to have single
    Anil> element access operator that does exact matching.

    Anil> Anil



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Sep 06 22:59:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 06 Sep 2006 - 15:38:21 GMT.

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