Description Usage Arguments Details Value Examples
People often confuse iteration and vectorization.
1 | vectorize(x)
|
x |
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
1 | vectorize(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.