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

IODS-update-needed-with-tidyverse-in-last-chapter #10

Open
avlehtim opened this issue Oct 24, 2021 · 2 comments
Open

IODS-update-needed-with-tidyverse-in-last-chapter #10

avlehtim opened this issue Oct 24, 2021 · 2 comments
Assignees

Comments

@avlehtim
Copy link
Collaborator

This is an update that should be done ASAP:


(although the code still works)

It is all about the last chapter, 6.Analysis of longitudinal data,
where we convert the data sets between long and wide formats.

Since creating this chapter (it was added later than the other ones and coded by Petteri Mäntymaa, one of the assistants and stats students at the time), the tidyverse functions have been re-written, see:

https://tidyr.tidyverse.org/

Especially this first point on that page ("Getting started"):

  • “Pivotting” which converts between long and wide forms. tidyr 1.0.0 introduces pivot_longer() and pivot_wider(), replacing the older spread() and gather() functions. See vignette("pivot") for more details.

So, our code was built before tidyr 1.0.0, using spread() and gather(). Those function should be replaced by the above pivotting functions.

Should be fairly straight-forward, I think. Must revise the DataCamp instructions, too (and check the RStudio exercise).

@gdrouard
Copy link
Collaborator

other slight change:
argument fun.y of the stat_summary function replaced by fun as fun.y is deprecated (warning message)

@gdrouard
Copy link
Collaborator

fixed; need to be built.

@gdrouard gdrouard self-assigned this Oct 27, 2021
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

2 participants