2023-09-22 16:16:20 +02:00
|
|
|
# setwd("C:/Users/nwickelmaier/Nextcloud/Documents/MDS/2023ss/60100_master_thesis/code")
|
|
|
|
|
|
|
|
#library(mtt)
|
|
|
|
devtools::load_all("../../../../software/mtt")
|
|
|
|
|
2023-09-26 18:34:59 +02:00
|
|
|
now <- format(Sys.time(), "%Y-%m-%d_%H-%M-%S")
|
2023-09-22 16:16:20 +02:00
|
|
|
|
|
|
|
folders <- dir("../data/8o8m/LogFiles/")
|
|
|
|
#folders <- "Berlin"
|
|
|
|
|
|
|
|
# parse raw log files
|
|
|
|
datraw <- parse_logfiles(folders, path = "../data/8o8m/LogFiles/")
|
|
|
|
artworks <- unique(na.omit(datraw$artwork))
|
|
|
|
|
2023-09-26 18:34:59 +02:00
|
|
|
# export data
|
|
|
|
write.table(datraw, paste0("../data/8o8m/raw_logfiles_", now, ".csv"),
|
|
|
|
sep = ";", row.names = FALSE)
|
|
|
|
|
|
|
|
datraw2 <- datraw[!is.na(datraw$artwork), ]
|
|
|
|
# TODO: Why is this happening?
|
|
|
|
|
2023-09-22 16:16:20 +02:00
|
|
|
# convert to log events
|
2023-10-23 15:11:08 +02:00
|
|
|
datlogs <- create_eventlogs(datraw2, xmlpath = "../data/8o8m/Content8o8m/")
|
2023-09-22 16:16:20 +02:00
|
|
|
|
|
|
|
# export data
|
|
|
|
write.table(datlogs, paste0("../data/8o8m/event_logfiles_", now, ".csv"),
|
|
|
|
sep = ";", row.names = FALSE)
|
|
|
|
|