Modern R Programming Cookbook

Recipes for emerging developers in R programming and data scientists to simplify their R programming capabilities
Preview in Mapt

Modern R Programming Cookbook

Jaynal Abedin

Recipes for emerging developers in R programming and data scientists to simplify their R programming capabilities
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Modern R Programming Cookbook Book Cover
Modern R Programming Cookbook
$ 35.99
$ 25.20
Machine Learning with R Cookbook - Second Edition Book Cover
Machine Learning with R Cookbook - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781787129054
Paperback236 pages

Book Description

R is a powerful tool for statistics, graphics, and statistical programming. It is used by tens of thousands of people daily to perform serious statistical analyses. It is a free, open source system whose implementation is the collective accomplishment of many intelligent, hard-working people. There are more than 2,000 available add-ons, and R is a serious rival to all commercial statistical packages. 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

Chapter 1: 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
Chapter 2: 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
Chapter 3: Writing Customized Functions
Introduction
Writing your first function in R
Writing functions with multiple arguments and use of default values
Handling data types in input arguments
Producing different output types and return values
Making a recursive call to a function
Handling exceptions and error messages
Chapter 4: 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
Chapter 5: R Objects and Classes
Introduction
Defining a new S3 class
Defining methods for the S3 class
Creating a generic function and defining a method for the S3 class
Defining a new S4 class
Defining methods for an S4 class
Creating a function to return an object of the S4 class
Chapter 6: 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
Chapter 7: 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
Chapter 8: R and Databases
Introduction
Installing the PostgreSQL database server
Creating a new user in the PostgreSQL database server
Creating a table in a database in PostgreSQL
Creating a dataset in PostgreSQL from R
Interacting with the PostgreSQL database from R
Creating and interacting with the SQLite database from R
Chapter 9: Parallel Processing in R
Introduction
Creating an XDF file from CSV input
Processing data as a chunk
Comparing computation time with data frame and XDF
Linear regression with larger data (rxFastLiner)

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

Authors

Table of Contents

Chapter 1: 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
Chapter 2: 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
Chapter 3: Writing Customized Functions
Introduction
Writing your first function in R
Writing functions with multiple arguments and use of default values
Handling data types in input arguments
Producing different output types and return values
Making a recursive call to a function
Handling exceptions and error messages
Chapter 4: 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
Chapter 5: R Objects and Classes
Introduction
Defining a new S3 class
Defining methods for the S3 class
Creating a generic function and defining a method for the S3 class
Defining a new S4 class
Defining methods for an S4 class
Creating a function to return an object of the S4 class
Chapter 6: 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
Chapter 7: 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
Chapter 8: R and Databases
Introduction
Installing the PostgreSQL database server
Creating a new user in the PostgreSQL database server
Creating a table in a database in PostgreSQL
Creating a dataset in PostgreSQL from R
Interacting with the PostgreSQL database from R
Creating and interacting with the SQLite database from R
Chapter 9: Parallel Processing in R
Introduction
Creating an XDF file from CSV input
Processing data as a chunk
Comparing computation time with data frame and XDF
Linear regression with larger data (rxFastLiner)

Book Details

ISBN 139781787129054
Paperback236 pages
Read More

Read More Reviews

Recommended for You

Machine Learning with R Cookbook - Second Edition Book Cover
Machine Learning with R Cookbook - Second Edition
$ 39.99
$ 28.00
Neural Networks with R Book Cover
Neural Networks with R
$ 31.99
$ 22.40
R Programming By Example Book Cover
R Programming By Example
$ 39.99
$ 28.00
Mastering Machine Learning with R - Second Edition Book Cover
Mastering Machine Learning with R - Second Edition
$ 39.99
$ 28.00
Data Science Algorithms in a Week Book Cover
Data Science Algorithms in a Week
$ 31.99
$ 22.40
Web Developer Toolbox - Essentials for Modern Web Development [Video] Book Cover
Web Developer Toolbox - Essentials for Modern Web Development [Video]
$ 124.99
$ 106.25