People often confuse iteration and vectorization.
a numeric vector of non-negative numbers of any length
The implementation below is an iteration. Vectorize it.
Show that vectorization influences performance using the microbenchmark package.
Find one StackOverflow post where the question or answer confuses iteration and vectorization.
A numeric vector of
length(x), where each element is
the square root of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.