-
Notifications
You must be signed in to change notification settings - Fork 25
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
Comments on "Common errors in R" #19
Comments
nice analysis! regarding
There are some good 'lessons' to come out of digging into parameter 'truthiness'. The most common of which is to explain first why if(param ==TRUE) is unnecessary, and second once they understand inherently that if statements need boolean values, to introduce how to handle statments that only sometimes return booleans.
vs
I find using all.equal as an example for when isTRUE is appropriate. The all equal can also lead to a nice aside about floating point numbers!
Though frankly I wouldn't consider these examples suitable for a beginners workshop (more important things to cover in limited time imo), but are good reference material that should be easily accessible when they are ready to keep exploring. |
Very nice analysis! Thanks for the discussion about all the various types of errors, though you seem to have skipped #10, the "missing value where" error type, which I presume is mainly the result of missing values in data where it wasn't expected. EDIT: On reading closer you did mention it -- those "missing value where" errors were actually bad calls to |
Haha nice and pretty useful, thanks! |
Great and funny analysis. Thanks! |
What's your preference for citing this? Has it been published somewhere? |
@benmarwick It hasn't been published elsewhere. I guess it makes sense to just cite it as one would a blog post somewhere. |
Comments on https://github.com/noamross/zero-dependency-problems/blob/master/misc/stack-overflow-common-r-errors.md
The text was updated successfully, but these errors were encountered: