O'Reilly logo

Beginning R: The Statistical Programming Language by Mark Gardener

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Contents

Chapter 1: Introducing R: What It Is and How to Get It

Getting the Hang of R

The R Website

Downloading and Installing R from CRAN

Running the R Program

Finding Your Way with R

Getting Help via the CRAN Website and the Internet

The Help Command in R

Anatomy of a Help Item in R

Command Packages

Standard Command Packages

What Extra Packages Can Do for You

How to Get Extra Packages of R Commands

Running and Manipulating Packages

Summary

Chapter 2: Starting Out: Becoming Familiar with R

Some Simple Math

Use R Like a Calculator

Storing the Results of Calculations

Reading and Getting Data into R

Using the combine Command for Making Data

Using the scan Command for Making Data

Reading Bigger Data Files

Viewing Named Objects

Viewing Previously Loaded Named-Objects

Removing Objects from R

Types of Data Items

Number Data

Text Items

Converting Between Number and Text Data

The Structure of Data Items

Vector Items

Data Frames

Matrix Objects

List Objects

Examining Data Structure

Working with History Commands

Using History Files

Editing History Files

Saving Your Work in R

Saving the Workspace on Exit

Saving Data Files to Disk

Reading Data Files from Disk

Saving Data to Disk as Text Files

Summary

Chapter 3: Starting Out: Working With Objects

Manipulating Objects

Manipulating Vectors

Manipulating Matrix and Data Frames

Manipulating Lists

Viewing Objects within Objects

Looking Inside Complicated Data Objects

Opening Complicated Data Objects

Quick Looks at Complicated Data Objects

Viewing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required