[R] Trying to learn how to write an "advanced" function
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Thu Mar 16 13:37:26 CET 2023
В Thu, 16 Mar 2023 12:11:35 +0000
"Sorkin, John" <jsorkin using som.umaryland.edu> пишет:
> (1) can someone point me to an explanation of match.call or match
> that can be understood by the uninitiated? (2) can someone point me
> to a document that will help me learn how to write an "advanced"
> function?
By "advanced" functions, you seem to mean non-standard evaluation. See
this chapter in the first edition of Advanced R:
http://adv-r.had.co.nz/Computing-on-the-language.html
Additionally, a search for "R non-standard evaluation" should give you
other useful results.
Note that non-standard evaluation is hard to get right for all cases,
and such bugs surface even in R itself from time to time:
https://bugs.r-project.org/show_bug.cgi?id=18368
--
Best regards,
Ivan
More information about the R-help
mailing list