You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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()
andfilter()
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.
The text was updated successfully, but these errors were encountered: