May 2019
Intermediate to advanced
664 pages
15h 41m
English
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 ...