[R] Forwarding missing arguments to the `[` method

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Thu Dec 2 22:00:01 CET 2021


Sorry for sending an unfinished message!

On Thu, 2 Dec 2021 23:57:11 +0300
Ivan Krylov <krylov.r00t using gmail.com> wrote:

> Why can I forward missing i,j to built-in `[`

Why can I forward missing i,j to the built-in `[` method but not
to user-defined methods? How can I fix this? Default i and j to TRUE?
Are there less involved methods of handling my problem of subsetting
attr(x, 'foo') with the dimnames of x? Preferrably without setting
dimnames on attr(x, 'foo') itself.

-- 
Best regards,
Ivan



More information about the R-help mailing list