Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Vectorized function": demystify at first use #1

Open
jennybc opened this issue Apr 11, 2018 · 0 comments
Open

"Vectorized function": demystify at first use #1

jennybc opened this issue Apr 11, 2018 · 0 comments

Comments

@jennybc
Copy link
Owner

jennybc commented Apr 11, 2018

This term can sound much more intimidating than it is, especially if you are new to R. @edgararuiz likened it to "quantum entanglement".

How to demystify it quickly when introduced?

@garrett suggestions: "a function that works with vectors", a diagram, clear code demo

@jimhester points to this quote from @andrie's book:

Vectorized functions are a very useful feature of R, but programmers who are used to other languages often have trouble with this concept at first. A vectorized function works not just on a single value, but on a whole vector of values at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant