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

    Programmers think programming is really hard.  Non-programmers think it’s even harder than that. Figure 1: The perceived difficulty of programming.  Why is programming so arduous? […]

  • jun 25, 26

    Coordinates: 2014 September 15-17 in the London borough of #rstats. 15th, evening I had just the right number of R bugs so that I could walk to the drinks and arrive [...]

  • jun 25, 26

    Navigation gets you from where you are to where you want to be. Speaking of navigation, you can jump to selected sections of this post: Navigation; R-bloggers; Task views; Rdocumentation.org; [...]