Mutate data in an R script.
The Python script did not read the timestamp correctly for some reason. All timestamps were 0.labels
parent
1efb8e3112
commit
afa3b8546f
|
@ -72,7 +72,7 @@ PHONE_APPLICATIONS_FOREGROUND:
|
|||
MUTATION:
|
||||
COLUMN_MAPPINGS:
|
||||
SCRIPTS:
|
||||
- src/data/streams/mutations/phone/straw/app_add_name.py
|
||||
- src/data/streams/mutations/phone/straw/app_add_name.R
|
||||
|
||||
PHONE_APPLICATIONS_NOTIFICATIONS:
|
||||
ANDROID:
|
||||
|
@ -86,7 +86,7 @@ PHONE_APPLICATIONS_NOTIFICATIONS:
|
|||
MUTATION:
|
||||
COLUMN_MAPPINGS:
|
||||
SCRIPTS:
|
||||
- src/data/streams/mutations/phone/straw/app_add_name.py
|
||||
- src/data/streams/mutations/phone/straw/app_add_name.R
|
||||
|
||||
PHONE_BATTERY:
|
||||
ANDROID:
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
source("renv/activate.R") # needed to use RAPIDS renv environment
|
||||
library(dplyr)
|
||||
|
||||
main <- function(data, stream_parameters){
|
||||
data <- data %>%
|
||||
mutate(application_name = "hashed")
|
||||
return(data)
|
||||
}
|
Loading…
Reference in New Issue