Efficient R programming : a practical guide to smarter programming /
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly Media,
2016.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- 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.
- Top Five Tips for an Efficient R SetupOperating 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.
- 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.
- Chapter 4. Efficient WorkflowPrerequisites; 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.
- 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.