Chapter 7. Working with Data
In the previous chapters, you learned the most commonly used object types and functions to work in R. We know how to create and modify vectors, lists, and data frames, how to define our own functions and how to use proper expressions to translate our logic in mind to R code in the editor. With these objects, functions, and expressions, we can start working with data.
In this chapter, we will set out on a journey of working with data and cover the following topics:
- Reading and writing data in a file
- Visualizing data with plot functions
- Analyzing data with simple statistical models and data mining tools
Reading and writing data
The first step in any kind of data analysis in R is to load data, that is, to import a dataset into ...
Get Learning R Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.