Mutate data in an R script.

The Python script did not read the timestamp correctly for some reason. All timestamps were 0.
labels
junos 2022-01-26 16:34:19 +01:00
parent 1efb8e3112
commit afa3b8546f
2 changed files with 10 additions and 2 deletions

View File

@ -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:

View File

@ -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)
}