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

Avoid duplicating content with base R/tidyverse #1

Open
humburg opened this issue Jul 29, 2019 · 2 comments
Open

Avoid duplicating content with base R/tidyverse #1

humburg opened this issue Jul 29, 2019 · 2 comments

Comments

@humburg
Copy link
Member

humburg commented Jul 29, 2019

This course has a reasonably long section on subsetting of data frames that mostly mirrors the subsetting of vectors. While it is certainly useful to know how to do that it is then mostly ignored in favour of dplyr's select() and filter() methods.

Since there is more content than we usually manage anyway, I would like to propose cutting most of the base R subsetting for data frames. It may be useful to retain a much smaller section that essentially says, look, you can subset data frames in almost the same way as vectors.

Teaching one way to do things should be enough for a course like this and sticking to the tidyverse way as much as possible should help to avoid confusion.

@humburg
Copy link
Member Author

humburg commented Jul 29, 2019

A related issue is the data frame / tibble distinction. Since read_csv() is used to read the data learners never actually interact with data frames directly and much of the text in that section is somewhat inaccurate in that respect.

@humburg
Copy link
Member Author

humburg commented Jul 29, 2019

And while we are talking about using the tidyverse where possible, the section on factors should probably be converted to use the forcats package.

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