-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.R
44 lines (43 loc) · 1.18 KB
/
global.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
library(dplyr)
inputData <- read.csv("data/formatedData.csv", header = TRUE, stringsAsFactors = FALSE)
countries <- read.csv("data/countries.csv", header = TRUE, stringsAsFactors = FALSE)
#Data cleaning
cleanData <- inputData
cleanData$X <- NULL
cleanData$itime <- NULL
cleanData$Device <- NULL
cleanData$DOM <- NULL
cleanData$Type <- NULL
cleanData$Subtype <- NULL
cleanData$Action <- NULL
cleanData$AppCat <- NULL
cleanData$App <- NULL
cleanData$level <- NULL
cleanData$Craction <- NULL
cleanData$CRLevel <- NULL
cleanData$Crscore <- NULL
cleanData$dstcountry <- NULL
cleanData$dstinf <- NULL
cleanData$dstip <- NULL
cleanData$dstport <- NULL
cleanData$duration <- NULL
cleanData$logid <- NULL
cleanData$logver <- NULL
cleanData$policyid <- NULL
cleanData$policytype <- NULL
cleanData$none <- NULL
cleanData$proto <- NULL
cleanData$rcvdbyte <- NULL
cleanData$sentbyte <- NULL
cleanData$sentpkt <- NULL
cleanData$sessionid <- NULL
cleanData$srcinf <- NULL
cleanData$srcport <- NULL
cleanData$threatcnts <- NULL
cleanData$threatlvls <- NULL
cleanData$threats <- NULL
cleanData$threattyps <- NULL
cleanData$threatwgts <- NULL
cleanData$trandisp <- NULL
cleanData$tranip <- NULL
cleanData$tranport <- NULL