mdsr-book / mdsr-book.github.io

Website for Modern Data Science with R book
19 stars 14 forks source link

Chapter 6 exercises issues #51

Open willwerscheid opened 8 months ago

willwerscheid commented 8 months ago

6.1.

In the Marriage data set included in mosaic, the appdate, ceremonydate, and dob variables are encoded as factors, even though they are dates. Use lubridate to convert those three columns into a date format.

I think the authors of the mosiac package must have recently corrected this -- if you install the newest version of mosaic they are correctly encoded as dates. So there is nothing to do here.

6.2. This exercise seems out of place -- the piping operator is not discussed in this chapter.

6.5. I am a little confused about the hint here -- it seems more natural to me to use a single instance of pivot_wider() rather than pivot_longer() followed by pivot_wider()`.

Supplementary 6.1. This exercise is also out of place -- joins are not discussed in this chapter (and full joins are not mentioned anywhere I don't think).

nicholasjhorton commented 8 months ago

Those are great suggestions. I will work to address them. All the best,NickOn Mar 18, 2024, at 1:14 PM, Jason Willwerscheid @.***> wrote: 6.1.

In the Marriage data set included in mosaic, the appdate, ceremonydate, and dob variables are encoded as factors, even though they are dates. Use lubridate to convert those three columns into a date format.

I think the authors of the mosiac package must have recently corrected this -- if you install the newest version of mosaic they are correctly encoded as dates. So there is nothing to do here. 6.2. This exercise seems out of place -- the piping operator is not discussed in this chapter. 6.5. I am a little confused about the hint here -- it seems more natural to me to use a single instance of pivot_wider() rather than pivot_longer() followed by pivot_wider()`. Supplementary 6.1. This exercise is also out of place -- joins are not discussed in this chapter (and full joins are not mentioned anywhere I don't think).

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>