Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Data Science Essentials

You're reading from  R Data Science Essentials

Product type Book
Published in Jan 2016
Publisher
ISBN-13 9781785286544
Pages 154 pages
Edition 1st Edition
Languages

Table of Contents (15) Chapters

R Data Science Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with R 2. Exploratory Data Analysis 3. Pattern Discovery 4. Segmentation Using Clustering 5. Developing Regression Models 6. Time Series Forecasting 7. Recommendation Engine 8. Communicating Data Analysis 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...

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}