Book Image

Hands-On Data Science with R

By : Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias
Book Image

Hands-On Data Science with R

By: Vitor Bianchi Lanzetta, Doug Ortiz, Nataraj Dasgupta, Ricardo Anjoleto Farias

Overview of this book

R is the most widely used programming language, and when used in association with data science, this powerful combination will solve the complexities involved with unstructured datasets in the real world. This book covers the entire data science ecosystem for aspiring data scientists, right from zero to a level where you are confident enough to get hands-on with real-world data science problems. The book starts with an introduction to data science and introduces readers to popular R libraries for executing data science routine tasks. This book covers all the important processes in data science such as data gathering, cleaning data, and then uncovering patterns from it. You will explore algorithms such as machine learning algorithms, predictive analytical models, and finally deep learning algorithms. You will learn to run the most powerful visualization packages available in R so as to ensure that you can easily derive insights from your data. Towards the end, you will also learn how to integrate R with Spark and Hadoop and perform large-scale data analytics without much complexity.
Table of Contents (16 chapters)

Quiz

  1. Quiz-tion: Which of the following best describes sparklyr ?
    1. It is the R backend (package) for Spark
    2. It is the R backend for Spark and H2O
    3. It is a package in tidyverse used for Spark data analysis
  2. Quiz-tion: How can you read a CSV file and create a Spark DataFrame ?
    1. Using spark_create_csv
    2. You cannot read CSV files in Spark directly
    3. Using spark_read_csv
  3. Quiz-tion: What is MLlib?
    1. H2O machine learning library
    2. ML libraries in CRAN
    3. Spark machine learning library

Answersexecuting the following code will give you the answers to the quiz questions:

set.seed(12)
round(runif(3,1,3))