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

Kommentarer inaktiverade för More R Vectorize

See more

Explore more content and blog posts.

  • jun 25, 26

    How to have a better chance of a good outcome. Making mistakes There’s been a lot of talk recently about data analysis problems with spreadsheets.  If you’ve not stuck your [...]

  • jun 25, 26

    The AllTrials campaign is pushing for all data on drug trials to be made public -- see the campaign statement. If the public has all the evidence rather than a [...]

  • jun 25, 26

    Here is an interview with Ron Hochreiter, Assistant Professor at WU Vienna University Economics and Business. In 25 words or less tell us what you do (using German words is [...]