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
Towards the basic R mindset. Previously The post ”A first step towards R from spreadsheets” provides an introduction to switching from spreadsheets to R. It also includes a list of [...]
jun 25, 26
I failed to find Kahneman’s book in the economics section of the bookshop, so I had to ask where it was. ”Oh, that’s in the psychology section.” It should have [...]
jun 25, 26
An introductory comparison of using the two languages. Background R was made especially for data analysis and graphics. SQL was made especially for databases. They are allies. The data structure [...]

