Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Data Science with R

You're reading from  Hands-On Data Science with R

Product type Book
Published in Nov 2018
Publisher Packt
ISBN-13 9781789139402
Pages 420 pages
Edition 1st Edition
Languages
Authors (4):
Vitor Bianchi Lanzetta Vitor Bianchi Lanzetta
Profile icon Vitor Bianchi Lanzetta
Doug Ortiz Doug Ortiz
Profile icon Doug Ortiz
Nataraj Dasgupta Nataraj Dasgupta
Profile icon Nataraj Dasgupta
Ricardo Anjoleto Farias Ricardo Anjoleto Farias
Profile icon Ricardo Anjoleto Farias
View More author details
Toc

Table of Contents (16) Chapters close

Preface 1. Getting Started with Data Science and R 2. Descriptive and Inferential Statistics 3. Data Wrangling with R 4. KDD, Data Mining, and Text Mining 5. Data Analysis with R 6. Machine Learning with R 7. Forecasting and ML App with R 8. Neural Networks and Deep Learning 9. Markovian in R 10. Visualizing Data 11. Going to Production with R 12. Large Scale Data Analytics with Hadoop 13. R on Cloud 14. The Road Ahead 15. Other Books You May Enjoy

Installing the package and Spark

To begin, you need to install a few packages and the Spark itself. To do it, call the following codes; it can take some time to download Spark:

install.packages(c("dplyr", "sparklyr", "DAAG"))
library(sparklyr); library(dplyr)

#installing Spark
spark_install()

The DAAG package contains the dataset we are going to use. So, let's start our learning. This chapter is divided into five sections plus this introduction. The next section teaches you how to manipulate Spark data using dplyr and SQL query. In the second section, we bring Spark data into R, for analysis and visualization. The third section shows how to use the Spark or the H2O machine learning algorithms. The fourth section presents the Spark API. Lastly, there is a final section to see the Spark connection on RStudio IDE.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime