CHAPTER 9

image

Importing and Creating Data

When you are loading data into R, you have a number of options. For external files, there are several functions that read specific kinds of files or data. R also comes with a number of data sets that can be loaded. Sometimes the user wants to create data. R has a multitude of random number generators for data creation. Data can be entered manually using c() or by using various other functions to create data with certain patterns.

The first section of this chapter covers reading data into R and loading R data sets. The second section covers probability distributions, including random number generators and ...

Get R Quick Syntax Reference 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.