That is : "Apply function of two arguments cumulatively to the items of sequence, from left to right, so as to reduce the sequence to a single value. "
Andrie
Yes, it's called Reduce.
An example:
Reduce(paste, LETTERS[1:5])
[1] "A B C D E"
Reduce(sum, 1:5)
[1] 15
#List arguments work the same
Reduce(sum, list(1, 2, 3, 4, 5))
[1] 15
For more information about functional programming in R see the help file for ?funprog, an alias for ?Reduce
来源:https://stackoverflow.com/questions/7413819/does-r-have-something-equivalent-to-reduce-in-python