
Hands-On Programming with R
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Foreword
- Preface
- Conventions Used in This Book
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Part I. Project 1: Weighted Dice
- Chapter 1. The Very Basics
- The R User Interface
- Objects
- Functions
- Sample with Replacement
- Writing Your Own Functions
- The Function Constructor
- Arguments
- Scripts
- Summary
- Chapter 2. Packages and Help Pages
- Packages
- install.packages
- library
- Getting Help with Help Pages
- Parts of a Help Page
- Getting More Help
- Summary
- Project 1 Wrap-up
- Part II. Project 2: Playing Cards
- Chapter 3. R Objects
- Atomic Vectors
- Doubles
- Integers
- Characters
- Logicals
- Complex and Raw
- Attributes
- Names
- Dim
- Matrices
- Arrays
- Class
- Dates and Times
- Factors
- Coercion
- Lists
- Data Frames
- Loading Data
- Saving Data
- Summary
- Chapter 4. R Notation
- Selecting Values
- Positive Integers
- Negative Integers
- Zero
- Blank Spaces
- Logical Values
- Names
- Deal a Card
- Shuffle the Deck
- Dollar Signs and Double Brackets
- Summary
- Chapter 5. Modifying Values
- Changing Values in Place
- Logical Subsetting
- Logical Tests
- Boolean Operators
- Missing Information
- na.rm
- is.na
- Summary
- Chapter 6. Environments
- Environments
- Working with Environments
- The Active Environment
- Scoping Rules
- Assignment
- Evaluation
- Closures
- Summary
- Project 2 Wrap-up
- Part III. Project 3: Slot Machine
- Chapter 7. Programs
- Strategy
- Sequential Steps
- Parallel Cases
- if Statements
- else Statements
- Lookup Tables
- Code Comments
- Summary
- Chapter 8. S3
- The S3 System
- Attributes
- Generic Functions
- Methods
- Method Dispatch
- Classes
- S3 and Debugging
- S4 and R5
- Summary
- Chapter 9. Loops
- Expected Values
- expand.grid
- for Loops
- while Loops
- repeat Loops
- Summary
- Chapter 10. Speed
- Vectorized Code
- How to Write Vectorized Code
- How to Write Fast for Loops in R
- Vectorized Code in Practice
- Loops Versus Vectorized Code
- Summary
- Project 3 Wrap-up
- Appendix A. Installing R and RStudio
- How to Download and Install R
- Windows
- Mac
- Linux
- Using R
- RStudio
- Opening R
- Appendix B. R Packages
- Installing Packages
- Loading Packages
- Appendix C. Updating R and Its Packages
- R Packages
- Appendix D. Loading and Saving Data in R
- Data Sets in Base R
- Working Directory
- Plain-text Files
- read.table
- The read Family
- read.fwf
- HTML Links
- Saving Plain-Text Files
- Compressing Files
- R Files
- Saving R Files
- Excel Spreadsheets
- Export from Excel
- Copy and Paste
- XLConnect
- Reading Spreadsheets
- Writing Spreadsheets
- Loading Files from Other Programs
- Connecting to Databases
- Appendix E. Debugging R Code
- traceback
- browser
- Break Points
- debug
- trace
- recover
- Index
- About the Author
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.