R for Data Science Cookbook

Bok av David Chiu
Over 100 hands-on recipes to effectively solve real-world data problems using the most popular R packages and techniquesAbout This BookGain insight into how data scientists collect, process, analyze, and visualize data using some of the most popular R packagesUnderstand how to apply useful data analysis techniques in R for real-world applicationsAn easy-to-follow guide to make the life of data scientist easier with the problems faced while performing data analysisWho This Book Is ForThis book is for those who are already familiar with the basic operation of R, but want to learn how to efficiently and effectively analyze real-world data problems using practical R packages.What You Will LearnGet to know the functional characteristics of R languageExtract, transform, and load data from heterogeneous sourcesUnderstand how easily R can confront probability and statistics problemsGet simple R instructions to quickly organize and manipulate large datasetsCreate professional data visualizations and interactive reportsPredict user purchase behavior by adopting a classification approachImplement data mining techniques to discover items that are frequently purchased togetherGroup similar text documents by using various clustering methodsIn DetailThis cookbook offers a range of data analysis samples in simple and straightforward R code, providing step-by-step resources and time-saving methods to help you solve data problems efficiently.The first section deals with how to create R functions to avoid the unnecessary duplication of code. You will learn how to prepare, process, and perform sophisticated ETL for heterogeneous data sources with R packages. An example of data manipulation is provided, illustrating how to use the "e;dplyr"e; and "e;data.table"e; packages to efficiently process larger data structures. We also focus on "e;ggplot2"e; and show you how to create advanced figures for data exploration.In addition, you will learn how to build an interactive report using the "e;ggvis"e; package. Later chapters offer insight into time series analysis on financial data, while there is detailed information on the hot topic of machine learning, including data classification, regression, clustering, association rule mining, and dimension reduction.By the end of this book, you will understand how to resolve issues and will be able to comfortably offer solutions to problems encountered while performing data analysis.Style and approachThis easy-to-follow guide is full of hands-on examples of data analysis with R. Each topic is fully explained beginning with the core concept, followed by step-by-step practical examples, and concluding with detailed explanations of each concept used.