Skip to Main Content
Statistical Analysis with R Essentials For Dummies
book

Statistical Analysis with R Essentials For Dummies

by Joseph Schmuller
April 2024
Beginner content levelBeginner
192 pages
3h 18m
English
For Dummies
Content preview from Statistical Analysis with R Essentials For Dummies

Chapter 3

Digging Deeper Into R

IN THIS CHAPTER

Bullet Unpacking packages

Bullet Formulating formulas

Bullet Reading and writing files

It’s time to delve more deeply into R. In this chapter, I tell you how to unlock R features that reside in packages. I also show you how to create R formulas that perform statistical analyses and how R imports and exports data.

Packages

A package is a collection of functions and data that augments R. If you’re an aspiring data scientist and you’re looking for data to work with, you’ll find data frames galore in R packages. If you’re looking for a specialized statistical function that’s not in the basic R installation, you can probably find it in a package.

R stores packages in a directory called the library. How do you get a package into the library? Click the Packages tab in the Files, Plots, Packages, and Help pane. In the upcoming example, I use the well-known MASS package, which contains over 150 data frames from a variety of fields.

If you want to see what’s in the MASS package, click on MASS in the Packages tab. (It’s in the System Library section of this tab.) That opens a page on the Help tab, which appears in Figure 3-1.

FIGURE 3-1: The Help tab, showing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Statistical Analysis with R For Dummies

Statistical Analysis with R For Dummies

Joseph Schmuller

Publisher Resources

ISBN: 9781394263424Purchase Link