Skip to Content
Advanced Machine Learning with R
book

Advanced Machine Learning with R

by Cory Lesmeister, Dr. Sunil Kumar Chinnamgari
May 2019
Intermediate to advanced
664 pages
15h 41m
English
Packt Publishing
Content preview from Advanced Machine Learning with R

Creating transactional data

In the world of the Internet of Things, you receive a ton of data. As you monitor devices for anomalies or failures, let's say you get some fault codes. How would you put the raw data into something meaningful for analysis in R? Well, here's a case study. We'll put together a random dataset and turn it into the proper form for use with R's arules package. Here's the dataframe:

> set.seed(270)> faults <- data.frame(    serialNumber = sample(1:20, 100, replace = T),    faultCode = paste("fc", sample(1:12, 100, replace = T), sep = "") )

This gives us 20 different serial numbers, which tells us which devices being monitored have had faults. Each device has a possibility of 12 different fault codes. The limitation of association ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Machine Learning Using R

Machine Learning Using R

Karthik Ramasubramanian, Abhishek Singh
Machine Learning with R Cookbook - Second Edition

Machine Learning with R Cookbook - Second Edition

AshishSingh Bhatia, Yu-Wei, Chiu (David Chiu)
Practical Machine Learning in R

Practical Machine Learning in R

Fred Nwanganga, Mike Chapple

Publisher Resources

ISBN: 9781838641771Supplemental Content