Fix missing R library
parent
0dafdd1340
commit
499b92e240
|
@ -1,5 +1,6 @@
|
|||
source("renv/activate.R")
|
||||
library("dplyr")
|
||||
library("tidyr")
|
||||
|
||||
# Using mostly indeixng instead of tidyr because is faster
|
||||
resampled_episodes <- read.csv(snakemake@input[[1]])
|
||||
|
@ -18,5 +19,4 @@ resampled_episodes[resampled_episodes$end_flag ==1, "timestamp"] = resampled_epi
|
|||
resampled_episodes[resampled_episodes$end_flag ==2, "timestamp"] = resampled_episodes[resampled_episodes$end_flag ==2, "end_timestamp"]
|
||||
resampled_episodes <- resampled_episodes %>% select(-end_flag)
|
||||
|
||||
|
||||
write.csv(resampled_episodes, snakemake@output[[1]], row.names = FALSE)
|
||||
|
|
Loading…
Reference in New Issue