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

Remove reference to `[]` being a function and tweak. #391

Open
wants to merge 1 commit into
base: gh-pages
from

Conversation

Projects
None yet
2 participants
@MilesMcBain
Contributor

MilesMcBain commented May 27, 2018

Yes it is a function, but this seems like an awkward spot for a sidebar on how all operators are in fact functions, at this point, learners probably can't appreciate that. So it's just a distraction.

It also seems contradictory to say [] means "get me the nth element" when the very next step is to use it to get multiple elements. "get me these elements" works for a single element and also works for logical indexing.

Remove reference to `[]` being a function and tweak.
Yes it is a function, but this seems like an awkward spot for a sidebar on how all operators are in fact functions, at this point, learners probably can't appreciate that. So it's just a distraction.

It also seems contradictory to say `[]` means "get me the nth element" when the very next step is to use it to get multiple elements. "get me these elements" works for a single element and also works for logical indexing.
@naupaka

This comment has been minimized.

Member

naupaka commented May 27, 2018

I agree with the second part of the proposed change (from "get me the nth" to get me these") but I am not so sure it is worth removing the statement about [ being a function. Again, an instructor is free to skip over this when teaching, but the additional info could be useful, and helpful for learning about how R works as a language (which might be important for people who have programming experience in another language and are attending a workshop or using these materials to learn R).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment