Book description
Recipes for emerging developers in R programming and data scientists to simplify their R programming capabilities
About This Book
Develop strategies to speed up your R code
Tackle programming problems and explore both functional and object-oriented programming techniques
Learn how to address the core problems of programming in R with the most popular R packages for common tasks
Who This Book Is For
This book is for developers who would like to enhance the R programming skills. Basic knowledge of R programming is assumed.
What You Will Learn
Install R and its various IDE for a given platform along with installing libraries from different repositories and version control
Learn about basic data structures in R and how to work with them
Write customized R functions and handle recursions, exceptions in R environments
Create the data processing task as a step by step computer program and execute using dplyr
Extract and process unstructured text data
Interact with database management system to develop statistical applications
Formulate and implement parallel processing in R
In Detail
R is a high-level statistical language and is widely used among statisticians and data miners for developing statistical applications. The objective of this book is to show how to work with different programming aspects of R. The emerging R developers and data science could have very good programming knowledge but might have limited understanding about R syntax and semantics. Our book will be a platform develop practical solution out of real world problem in scalable fashion and with very good understanding. You will work with various versions of R libraries that are essential for scalable data science solutions. You will learn to work with Input / Output issues when working with relatively larger dataset. At the end of this book readers will also learn how to work with databases from within R and also what and how meta programming helps in developing applications.
Table of contents
- Preface
-
Installing and Configuring R and its Libraries
- Introduction
- Installing and configuring base R in Windows
- Installing and configuring base R in Linux
- Installing and configuring RStudio IDE in Windows
- Installing and configuring RStudio IDE in Linux
- Installing and configuring R tools for Visual Studio in Windows
- Installing R libraries from various sources
- Installing a specific version of R library
-
Data Structures in R
- Introduction
- Creating a vector and accessing its properties
- Creating a matrix and accessing its properties
- Creating a data frame and accessing its properties
- Creating an array and accessing its properties
- Creating a list from a combination of vector, matrix, and data frame
- Converting a matrix to a data frame and a data frame to a matrix
- Writing Customized Functions
-
Conditional and Iterative Operations
- Introduction
- The use of the if conditional statement
- The use of the if…else conditional operator
- The use of the ifelse vectorised conditional operator
- Writing a function using the switch operator
- Comparing the performance of switch and series of the if…else statements
- Using for loop for iterations
- Vectorised operation versus for loop
- R Objects and Classes
-
Querying, Filtering, and Summarizing
- Introduction
- Using the pipe operator for data processing
- Efficient and fast summarization using the dplyr verbs
- Using the customized function within the dplyr verbs
- Using the select verb for data processing
- Using the filter verb for data processing
- Using the arrange verb for data processing
- Using mutate for data processing
- Using summarise to summarize dataset
-
R for Text Processing
- Introduction
- Extracting unstructured text data from a plain web page
- Extracting text data from an HTML page
- Extracting text data from an HTML page using the XML library
- Extracting text data from PubMed
- Importing unstructured text data from a plain text file
- Importing plain text data from a PDF file
- Pre-processing text data for topic modeling and sentiment analysis
- Creating a word cloud to explore unstructured text data
- Using regular expression in text processing
- R and Databases
- Parallel Processing in R
Product information
- Title: Modern R Programming Cookbook
- Author(s):
- Release date: October 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787129054
You might also like
book
Efficient R Programming
There are many excellent R resources for visualization, data science, and package development. Hundreds of scattered …
book
Modern C++ Programming Cookbook - Second Edition
A pragmatic recipe book for acquiring a comprehensive understanding of the complexities and core fundamentals of …
book
R Programming By Example
This step-by-step guide demonstrates how to build simple-to-advanced applications through examples in R using modern tools. …
book
Python 3 Object-Oriented Programming. - Third Edition
Uncover modern Python with this guide to Python data structures, design patterns, and effective object-oriented techniques …