R: Reduce() – apply’s lesser known brother
By Thoralf Mildenberger (ZHAW) Everybody who knows a bit about R knows that in general loops are said to be evil and should be avoided, both for efficiency reasons and code readability, although one could argue about both. The usual advice is to use vector operations and apply() and its relatives. sapply(), vapply() and lapply() […]