Overcome performance difficulties in R with a range of exciting techniques and solutions
With the increasing use of information in all areas of business and science, R provides an easy and powerful way to analyze and process the vast amounts of data involved. It is one of the most popular tools today for faster data exploration, statistical analysis, and statistical modeling and can generate useful insights and discoveries from large amounts of data.
Through this practical and varied guide, you will become equipped to solve a range of performance problems in R programming. You will learn how to profile and benchmark R programs, identify bottlenecks, assess and identify performance limitations from the CPU, identify memory or disk input/output constraints, and optimize the computational speed of your R programs using great tricks, such as vectorizing computations. You will then move on to more advanced techniques, such as compiling code and tapping into the computing power of GPUs, optimizing memory consumption, and handling larger-than-memory data sets using disk-based memory and chunking.
What You Will Learn
Benchmark and profile R programs to solve performance bottlenecks
Understand how CPU, memory, and disk input/output constraints can limit the performance of R programs
Optimize R code to run faster and use less memory
Use compiled code in R and other languages such as C to speed up computations
Harness the power of GPUs for computational speed
Process data sets that are larger than memory using disk-based memory and chunking
Tap into the capacity of multiple CPUs using parallel computing
Leverage the power of advanced database systems and Big Data tools from within R
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.