R for Data Science Cookbook
eBook - ePub

R for Data Science Cookbook

Yu-Wei, Chiu (David Chiu)

Buch teilen
  1. 452 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

R for Data Science Cookbook

Yu-Wei, Chiu (David Chiu)

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Over 100 hands-on recipes to effectively solve real-world data problems using the most popular R packages and techniquesAbout This Book• Gain insight into how data scientists collect, process, analyze, and visualize data using some of the most popular R packages• Understand how to apply useful data analysis techniques in R for real-world applications• An 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 Learn• Get to know the functional characteristics of R language• Extract, transform, and load data from heterogeneous sources• Understand how easily R can confront probability and statistics problems• Get simple R instructions to quickly organize and manipulate large datasets• Create professional data visualizations and interactive reports• Predict user purchase behavior by adopting a classification approach• Implement data mining techniques to discover items that are frequently purchased together• Group 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 "dplyr" and "data.table" packages to efficiently process larger data structures. We also focus on "ggplot2" and show you how to create advanced figures for data exploration.In addition, you will learn how to build an interactive report using the "ggvis" 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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist R for Data Science Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu R for Data Science Cookbook von Yu-Wei, Chiu (David Chiu) im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Data Processing. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2016
ISBN
9781784392048

R for Data Science Cookbook


Table of Contents

R for Data Science Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Functions in R
Introduction
Creating R functions
Getting ready
How to do it...
How it works...
There's more...
Matching arguments
Getting ready
How to do it...
How it works...
There's more...
Understanding environments
Getting ready
How to do it...
How it works...
There's more...
Working with lexical scoping
Getting ready
How to do it...
How it works...
There's more...
Understanding closure
Getting ready
How to do it...
How it works...
There's more...
Performing lazy evaluation
Getting ready
How to do it...
How it works...
There's more...
Creating infix operators
Getting ready
How to do it...
How it works...
There's more...
Using the replacement function
Getting ready
How to do it...
How it works...
There's more...
Handling errors in a function
Getting ready
How to do it...
How it works...
There's more...
The debugging function
Getting ready
How to do it...
How it works...
There's more...
2. Data Extracting, Transforming, and Loading
Introduction
Downloading open data
Getting ready
How to do it…
How it works…
There's more…
Reading and writing CSV files
Getting ready
How to do it…
How it works…
There's more…
Scanning text files
Getting ready
How to do it…
How it works…
There's more…
Working with Excel files
Getting ready
How to do it…
How it works…
Reading data from databases
Getting ready
How to do it…
How it works…
There's more…
Scraping web data
Getting ready
How to do it…
How it works…
There's more…
Accessing Facebook data
Getting ready
How to do it…
How it works…
There's more…
Working with twitteR
Getting ready
How to do it…
How it works…
There's more…
3. Data Preprocessing and Preparation
Introduction
Renaming the data variable
Getting ready
How to do it…
How it works…
There's more…
Converting data types
Getting ready
How to do it…
How it works…
There's more…
Working with the date format
Getting ready
How to do it…
How it works…
There's more…
Adding new records
Getting ready
How to do it…
How it works…
There's more…
Filtering data
Getting ready
How to do it…
How it works…
There's more…
Dropping data
Getting ready
How to do it…
How it works…
There's more…
Merging data
Getting ready
How to do it…
How it works…
There's more…
Sorting data
Getting ready
How to do it…
How it works…
There's more…
Reshaping data
Getting ready
How to do it…
How it works…
There's more…
Detecting missing data
Getting ready
How to do it…
How it works…
There's more…
Imputing missing data
Getting ready
How to do it…
How it works…
There's more…
4. Data Manipulation
Introduction
Enhancing a data.frame with a data.table
Getting ready
How to do it…
How it works…
There's more…
Managing data with a data.table
Getting ready
How to do it…
How it works…
There's more…
Performing fast aggregation with a data.table
Getting ready
How to do it…
How it works…
There's more…
Merging large datasets with a data.table
Getting ready
How to do it…
How it works…
There's more…
Subsetting and slicing data with dplyr
Getting ready
How to do it…
How it works…
There's more…
Sampling data with dplyr
Getting ready
How to do it…...

Inhaltsverzeichnis