The tidyr package

As is often the case, the one who found the problem also proposed a solution: after defining the problem of untidy data, Hadley Wickham also developed the tidyr package, whose explicit purpose is to make your untidy data tidy. This is done by employing a reasoning similar to the one we met with diplyr, that is, using verbs. We will have a look at them within the following paragraphs, and once they are clear to us, we will leverage them to untie our dataset. Before we actually get into this, we should introduce a third different way of looking at table structure: long versus wide data.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset