Book Image

R Data Science Essentials

Book Image

R Data Science Essentials

Overview of this book

With organizations increasingly embedding data science across their enterprise and with management becoming more data-driven it is an urgent requirement for analysts and managers to understand the key concept of data science. The data science concepts discussed in this book will help you make key decisions and solve the complex problems you will inevitably face in this new world. R Data Science Essentials will introduce you to various important concepts in the field of data science using R. We start by reading data from multiple sources, then move on to processing the data, extracting hidden patterns, building predictive and forecasting models, building a recommendation engine, and communicating to the user through stunning visualizations and dashboards. By the end of this book, you will have an understanding of some very important techniques in data science, be able to implement them using R, understand and interpret the outcomes, and know how they helps businesses make a decision.
Table of Contents (15 chapters)
R Data Science Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the results


We can check the details of the rules generated by the cspade function using the following code. The summary function provides you with a highlight about the dataset such as the number of sequences present in the dataset, the most occurring items, frequency table on the length of the sequence, and the distribution of the support measure:

summary(seq_rules)

The output of the preceding command is as follows:

We can take a look at the rules generated by converting them into a data frame using the following code. We can check the various sequences along with the support score for each of them. By default, the rules generated are sorted based on the support score.

as(seq_rules, "data.frame")

The output of the preceding command is as follows:

Reference

For details about the plotting of rules, refer to this wonderful blog at http://statistical-research.com/association-rule-learning-and-the-apriori-algorithm/.

For detailed documentation on the packages, refer to the following...