Wednesday, February 14, 2007

The use of basic arithmetic functions in apply()

apply, tapply, lapply, sapply are very handy functions in terms of vectorizing calculations (see here). The function argument in apply functions has one caveat. In the case of functions like '+', '%*%', etc., the function name must be backquoted or quoted.

No comments: