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
The email address patrick@burns-stat.com was out of action for a few hours today. It is back now.
jun 25, 26
Customization in R. Basics Several features benefit from being customizable — either because of personal taste or specifics of the environment. The way R implements this flexibility is through the [...]
jun 25, 26
How to control the limits of data values in R plots. R has multiple graphics engines. Here we will talk about the base graphics and the ggplot2 package. We’ll create [...]

