Hands-On Programming with R. Write Your Own Functions and Simulations - Helion
ISBN: 978-14-493-5910-2
stron: 250, Format: ebook
Data wydania: 2014-06-13
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
Learn how to program by diving into the R language, and then use your newfound skills to solve practical data science problems. With this book, you’ll learn how to load data, assemble and disassemble data objects, navigate R’s environment system, write your own functions, and use all of R’s programming tools.
RStudio Master Instructor Garrett Grolemund not only teaches you how to program, but also shows you how to get more from R than just visualizing and modeling data. You’ll gain valuable programming skills and support your work as a data scientist at the same time.
- Work hands-on with three practical data analysis projects based on casino games
- Store, retrieve, and change data values in your computer’s memory
- Write programs and simulations that outperform those written by typical R users
- Use R programming tools such as if else statements, for loops, and S3 classes
- Learn how to write lightning-fast vectorized R code
- Take advantage of R’s package system and debugging tools
- Practice and apply R programming concepts as you learn them
Osoby które kupowały "Hands-On Programming with R. Write Your Own Functions and Simulations", wybierały także:
- Data Science w Pythonie. Kurs video. Przetwarzanie i analiza danych 149,00 zł, (67,05 zł -55%)
- Excel 2013. Kurs video. Poziom drugi. Przetwarzanie i analiza danych 79,00 zł, (35,55 zł -55%)
- Zarz 99,00 zł, (49,50 zł -50%)
- Eksploracja danych za pomoc 67,00 zł, (33,50 zł -50%)
- Google Analytics od podstaw. Analiza wp 69,00 zł, (34,50 zł -50%)
Spis treści
Hands-On Programming with R. Write Your Own Functions and Simulations eBook -- spis treści
- Hands-On Programming with R
- Foreword
- Preface
- Conventions Used in This Book
- Safari Books Online
- How to Contact Us
- Acknowledgments
- I. Project 1: Weighted Dice
- 1. The Very Basics
- The R User Interface
- Objects
- Functions
- Sample with Replacement
- Writing Your Own Functions
- The Function Constructor
- Arguments
- Scripts
- Summary
- 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
- Packages
- 1. The Very Basics
- II. Project 2: Playing Cards
- 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
- Atomic Vectors
- 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
- Selecting Values
- 5. Modifying Values
- Changing Values in Place
- Logical Subsetting
- Logical Tests
- Boolean Operators
- Missing Information
- na.rm
- is.na
- Summary
- 6. Environments
- Environments
- Working with Environments
- The Active Environment
- Scoping Rules
- Assignment
- Evaluation
- Closures
- Summary
- Project 2 Wrap-up
- 3. R Objects
- III. Project 3: Slot Machine
- 7. Programs
- Strategy
- Sequential Steps
- Parallel Cases
- if Statements
- else Statements
- Lookup Tables
- Code Comments
- Summary
- Strategy
- 8. S3
- The S3 System
- Attributes
- Generic Functions
- Methods
- Method Dispatch
- Classes
- S3 and Debugging
- S4 and R5
- Summary
- 9. Loops
- Expected Values
- expand.grid
- for Loops
- while Loops
- repeat Loops
- Summary
- 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
- A. Installing R and RStudio
- How to Download and Install R
- Windows
- Mac
- Linux
- Using R
- RStudio
- Opening R
- How to Download and Install R
- B. R Packages
- Installing Packages
- Loading Packages
- C. Updating R and Its Packages
- R Packages
- D. Loading and Saving Data in R
- Data Sets in Base R
- Working Directory
- Plain-text Files
- read.table
- sep
- header
- na.strings
- skip and nrow
- stringsAsFactors
- The read Family
- read.fwf
- HTML Links
- Saving Plain-Text Files
- Compressing Files
- read.table
- 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
- E. Debugging R Code
- traceback
- browser
- Break Points
- debug
- trace
- recover
- 7. Programs
- Index
- Colophon
- Copyright