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:
|
MUTATION:
|
||||||
COLUMN_MAPPINGS:
|
COLUMN_MAPPINGS:
|
||||||
SCRIPTS:
|
SCRIPTS:
|
||||||
- src/data/streams/mutations/phone/straw/app_add_name.py
|
- src/data/streams/mutations/phone/straw/app_add_name.R
|
||||||
|
|
||||||
PHONE_APPLICATIONS_NOTIFICATIONS:
|
PHONE_APPLICATIONS_NOTIFICATIONS:
|
||||||
ANDROID:
|
ANDROID:
|
||||||
|
@ -86,7 +86,7 @@ PHONE_APPLICATIONS_NOTIFICATIONS:
|
||||||
MUTATION:
|
MUTATION:
|
||||||
COLUMN_MAPPINGS:
|
COLUMN_MAPPINGS:
|
||||||
SCRIPTS:
|
SCRIPTS:
|
||||||
- src/data/streams/mutations/phone/straw/app_add_name.py
|
- src/data/streams/mutations/phone/straw/app_add_name.R
|
||||||
|
|
||||||
PHONE_BATTERY:
|
PHONE_BATTERY:
|
||||||
ANDROID:
|
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