From zhengda1936 at gmail.com  Thu Dec 24 14:54:00 2015
From: zhengda1936 at gmail.com (Da Zheng)
Date: Thu, 24 Dec 2015 08:54:00 -0500
Subject: [Rd] override pmin/pmax for my own matrix
Message-ID: <CAFLer83+2DvP9dvcB7nfTreKodLknoDdKOKTSaTyp6YmQSdtmA@mail.gmail.com>

Hello,

I'm trying to override pmin and pmax for my own matrix. These two
functions have ... as an argument. I tried to override them as
follows:
    setMethod("pmax", class_name, function(x, ..., na.rm) { ... })

I use this way to override primitive functions such as min/max and it
works fine.
But it doesn't work for pmin and pmax. I guess because they are
regular functions?
How do I override a regular function with ... as an argument?

Thanks,
Da



[Rd] override pmin/pmax for my own matrix
Da Zheng