Efficient R programming : a practical guide to smarter programming / Colin Gillespie and Robin Lovelace.
| Author/creator | Gillespie, Colin author. |
| Other author | Lovelace, Robin author. |
| Format | Electronic |
| Publication | Sebastopol, CA : O'Reilly Media, 2016. |
| Copyright Date | ©2017 |
| Description | 1 online resource (viii, 203 pages) : color illustrations |
| Supplemental Content | EBSCOhost |
| Subjects |
| Portion of title | Practical guide to smarter programming |
| Contents | Copyright; Table of Contents; Preface; Conventions Used in This Book; Using Code Examples; O'Reilly Safari; How to Contact Us; Acknowledgments; Colin; Robin; Chapter 1. Introduction; Prerequisites; Who This Book Is for and How to Use It; What Is Efficiency?; What Is Efficient R Programming?; Why Efficiency?; Cross-Transferable Skills for Efficiency; Touch Typing; Consistent Style and Code Conventions; Benchmarking and Profiling; Benchmarking; Benchmarking Example; Profiling; Book Resources; R Package; Online Version; References; Chapter 2. Efficient Setup; Prerequisites |
| Contents | Top Five Tips for an Efficient R Setup operating System; Operating System and Resource Monitoring; R Version; Installing R; Updating R; Installing R Packages; Installing R Packages with Dependencies; Updating R Packages; R Startup; R Startup Arguments; An Overview of R's Startup Files; The Location of Startup Files; The .Rprofile File; Example .Rprofile File; The .Renviron File; RStudio; Installing and Updating RStudio; Window Pane Layout; RStudio Options; Autocompletion; Keyboard Shortcuts; Object Display and Output Table; Project Management; BLAS and Alternative R Interpreters |
| Contents | Testing Performance Gains from BLASOther Interpreters; Useful BLAS/Benchmarking Resources; References; Chapter 3. Efficient Programming; Prerequisites; Top Five Tips for Efficient Programming; General Advice; Memory Allocation; Vectorized Code; Communicating with the User; Fatal Errors: stop(); Warnings: warning(); Informative Output: message() and cat(); Invisible Returns; Factors; Inherent Order; Fixed Set of Categories; The Apply Family; Example: Movies Dataset; Type Consistency; Caching Variables; Function Closures; The Byte Compiler; Example: The Mean Function; Compiling Code; References |
| Contents | Chapter 4. Efficient Workflow Prerequisites; Top Five Tips for Efficient Workflow; A Project Planning Typology; Project Planning and Management; Chunking Your Work; Making Your Workflow SMART; Visualizing Plans with R; Package Selection; Searching for R Packages; How to Select a Package; Publication; Dynamic Documents with R Markdown; R Packages; Reference; Chapter 5. Efficient Input/Output; Prerequisites; Top Five Tips for Efficient Data I/O; Versatile Data Import with rio; Plain-Text Formats; Differences Between fread() and read_csv(); Preprocessing Text Outside R; Binary File Formats |
| Contents | Native Binary Formats: Rdata or Rds?The Feather File Format; Benchmarking Binary File Formats; Protocol Buffers; Getting Data from the Internet; Accessing Data Stored in Packages; References; Chapter 6. Efficient Data Carpentry; Prerequisites; Top Five Tips for Efficient Data Carpentry; Efficient Data Frames with tibble; Tidying Data with tidyr and Regular Expressions; Make Wide Tables Long with gather(); Split Joint Variables with separate(); Other tidyr Functions; Regular Expressions; Efficient Data Processing with dplyr; Renaming Columns; Changing Column Classes; Filtering Rows |
| Bibliography note | Includes bibliographical references and index. |
| Source of description | Description based on online resource; title from title page (Safari, viewed December 16, 2016). |
| Issued in other form | Print version: 1491950781 9781491950784 |
| Genre/form | Electronic books. |
| ISBN | 9781491950722 (electronic bk.) |
| ISBN | 1491950722 (electronic bk.) |
| ISBN | 9781491950753 (electronic bk.) |
| ISBN | 1491950757 (electronic bk.) |
| ISBN | 9781491950739 (electronic bk.) |
| ISBN | 1491950730 (electronic bk.) |
| Stock number | CL0500000809 Safari Books Online |
| Stock number | DF3BBCB8-6279-44B5-82A5-921F0599DC23 OverDrive, Inc. http://www.overdrive.com |
Availability
| Library | Location | Call Number | Status | Item Actions |
|---|---|---|---|---|
| Electronic Resources | Access Content Online | ✔ Available |