search for: funprog

Displaying 3 results from an estimated 3 matches for "funprog".

2009 Jun 06
1
Reduce: extra args wishlist?
...RUE) }, z) but there doesn't seem to be a good reason not to allow it ... cheers Ben Bolker -- Ben Bolker Associate professor, Biology Dep't, Univ. of Florida bolker at ufl.edu / www.zoology.ufl.edu/bolker GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc *** /home/ben/funprog.R.new 2009-06-06 18:30:56.000000000 -0400 --- src/library/base/R/funprog.R 2009-02-12 10:39:32.000000000 -0500 *************** *** 15,21 **** # http://www.r-project.org/Licenses/ Reduce <- ! function(f, x, init, right = FALSE, accumulate = FALSE, ...) { mis <- missing(init)...
2019 Oct 05
0
should base R have a piping operator ?
...t I also find it better not to have them as part of base R. If you want to use them, load a package, if you don't, don't. This simple. As for your example, compose, there is a StackOverflow question on it. See this answer [3]. [1] https://stat.ethz.ch/R-manual/R-devel/library/base/html/funprog.html [2] https://stat.ethz.ch/R-manual/R-devel/library/base/html/Recall.html [3] https://stackoverflow.com/a/52465956/8245406 Hope this helps, Rui Barradas ?s 16:48 de 05/10/19, Ant F escreveu: > Hi John, > > Thanks, but the Bizzaro pipe comes with many flaws though : > * It's n...
2019 Oct 05
4
should base R have a piping operator ?
Hi John, Thanks, but the Bizzaro pipe comes with many flaws though : * It's not a single operator * It has a different precedence * It cannot be used in a subcall * The variable assigned to must be on the right * It doesn't trigger indentation when going to the line * It creates/overwrite a `.` variable in the worksace. And it doesn't deal gracefully with some lazy evaluation edge