Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
R Object-oriented Programming

You're reading from   R Object-oriented Programming A practical guide to help you learn and understand the programming techniques necessary to exploit the full power of R

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781783986682
Length 190 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Kelly Black Kelly Black
Author Profile Icon Kelly Black
Kelly Black
Arrow right icon
View More author details
Toc

Printing results and saving data

We will explore the options available to take information stored within the R environment and express that information in either human- or machine-readable forms. We will start with a brief discussion on saving the workspace in an R environment. Next, we will discuss various commands that can be used to print information to either the screen or a file. Finally, we will discuss the primitive commands that can be used for basic file operations.

Saving a workspace

There are two commands used to save the information in the current workspace. The first is the save command, which allows you to save particular variables. The second is the save.image command, which allows you to save all the variables within the workspace.

The save command requires a list of variables to save, and the name of a file to save the variables. There are a wide variety of options, but in the most basic form you simply save specific variables from the current workspace. Here, we use the ls...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image