forked from bupaverse/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrite_xes.Rmd
More file actions
37 lines (27 loc) · 908 Bytes
/
Copy pathwrite_xes.Rmd
File metadata and controls
37 lines (27 loc) · 908 Bytes
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
---
title: Write XES-files
output:
html_document:
toc: true
toc_float:
collapsed: false
print: false
---
Writing of XES-files can be done using the function `write_xes`.
```{r echo = F}
htmltools::includeHTML("tracking_google_analytics.html")
```
```{r include = F}
library(bupaR)
```
```{r}
args(write_xes)
```
It minimally requires 2 arguments:
* an event log object
* a file name/path where to store the file (if not specified, as file system window will open to save the file)
Additionally, one can specify which of the variables in the event log should be regarded as case attributes by supplying a character vector of variable names to the case_attributes argument. If this argument is not specified, all the variables start with prefix **CASE_** will be considered as case attributes.
```{r eval = F}
eventdataR::patients
write_xes(patients, "patients.xes")
```