Is R’s apply family more than syntactic sugar?
The apply functions in R don’t provide improved performance over other looping functions (e.g. for). One exception to this is lapply which can be a little faster because it does more work in C code than in R (see this question for an example of this). But in general, the rule is that you should … Read more