It appears that the 'pattern' column simply chooses the first pattern which matches out of
c("Point of Sale",
"Web Applications",
"Privilege Misuse",
"Lost and Stolen Assets",
"Miscellaneous Errors",
"Crimeware",
"Payment Card Skimmers",
"Denial of Service",
"Cyber-Espionage",
"Everything Else")
The column is not necessary for filtering as the individual columns work fine and is inconsistent with the individual pattern columns. As such it should be removed from the code.
It appears that the 'pattern' column simply chooses the first pattern which matches out of c("Point of Sale", "Web Applications", "Privilege Misuse", "Lost and Stolen Assets", "Miscellaneous Errors", "Crimeware", "Payment Card Skimmers", "Denial of Service", "Cyber-Espionage", "Everything Else") The column is not necessary for filtering as the individual columns work fine and is inconsistent with the individual pattern columns. As such it should be removed from the code.