Appendix H. R Functions Introduced in This Book

Here is a list of functions used in this book, for quick  reference. It is far from a complete list of R functions. For further information about a given function, x, see the index, or type help(x) or ?x.

Data Input/Output

load()
Reload an R dataset previously created by using save().
open.ncdf()
Open an .ncdf file (ncdf package).
Quandl()
Read a Quandl dataset (Quandl package).
read.csv()
Read a file in .csv format and create a data frame.
read.fwf()
Read a fixed-width file.
read.spss()
Read an SPSS dataset (foreign package).
read.table()
Read a file in table format and create a data frame.
read.txt()
Read a file in .txt format and create a data frame.
read.xport()
Read an SAS XPORT file (foreign package).
readWorksheetFromFile()
Read an Excel spreadsheet (XLConnect package).
save()
Write an R object to the working directory or a specified file.
xmlToDataFrame()
Read an XML file (XML package).

Datasets

attach()
Select a particular dataset for the following analysis.
data()
Determine what datasets are available (with no argument) or load a dataset.
data.frame()
Combine two or more vectors to make a new data frame.
detach()
Deselect a dataset; that is, following commands no longer analyze that dataset.
edit()
Edit a dataset.
fix()
Edit a dataset.
head()
View selected lines of a dataset, from the top.
str()
Determine the structure of an object.
subset()
Create a subset of a specified data frame.
tail()
View selected lines of ...

Get Graphing Data with R 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.