R for Data Science Cookbook
eBook - ePub

R for Data Science Cookbook

Yu-Wei, Chiu (David Chiu)

Share book
  1. 452 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

R for Data Science Cookbook

Yu-Wei, Chiu (David Chiu)

Book details
Book preview
Table of contents
Citations

About This Book

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is R for Data Science Cookbook an online PDF/ePUB?
Yes, you can access R for Data Science Cookbook by Yu-Wei, Chiu (David Chiu) in PDF and/or ePUB format, as well as other popular books in Computer Science & Data Processing. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781784392048
Edition
1

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ā€¦...

Table of contents