Fix missing R library

pull/103/head
JulioV 2020-09-29 15:35:44 -04:00
parent 0dafdd1340
commit 499b92e240
1 changed files with 1 additions and 1 deletions

View File

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