Some people have a hard time coming to terms with vectorization. If it is hard for you, you may be trying to make it more complicated than it is.
The essence of vectorization is simplicity. (There can be complicated ways to vectorize specific computations, but that should be considered as an aberration from the main point.)
If you are not getting it, relax and let it sink in slowly.
Resources
This includes a quick introduction to vectorization including the recycling rule.
Circles 3 and 4 give a more complete introduction to vectorization.
Back to top level of Impatient R
jun 25, 26
Several packages on CRAN provide (or relate to) interfaces between databases and R. Here is a summary, mostly in the words of the package descriptions. Remember that package names are [...]
jun 25, 26
Chapter 32 of Tao Te Programming advises you to make bricks instead of monoliths. Here is an example. The example is written with the syntax of R and is a [...]
jun 25, 26
There is a mechanism that allows variability in the arguments given to R functions. Technically it is ellipsis, but more commonly called ”…”, dots, dot-dot-dot or three-dots. Basics The three-dots [...]

