Wrangle

In this part of the book, you’ll learn about data wrangling, the art of getting your data into R in a useful form for further work. In some cases, this is a relatively simple application of a package that does data import. But in more complex cases it encompasses both tidying and transformation as the native structure of the data might be quite far from the tidy rectangle you’d prefer to work with.

Our data science model with import, tidy, and transform, highlighted in blue and labelled with "wrangle".

Figure 1: Data wrangling is the combination of importing, tidying, and transforming.

This part of the book proceeds as follows:

Some other types of data are not covered in this book:

For other file types, try the R data import/export manual and the rio package.