rapids/src/features/entry.R

16 lines
603 B
R
Raw Normal View History

source("renv/activate.R")
source("src/features/utils/utils.R")
library("dplyr",warn.conflicts = F)
library("tidyr")
sensor_data_files <- snakemake@input
2020-12-03 00:41:03 +01:00
sensor_data_files$time_segments_labels <- NULL
time_segments_file <- snakemake@input[["time_segments_labels"]]
provider <- snakemake@params["provider"][["provider"]]
provider_key <- snakemake@params["provider_key"]
sensor_key <- snakemake@params["sensor_key"]
2020-12-03 00:41:03 +01:00
sensor_features <- fetch_provider_features(provider, provider_key, sensor_key, sensor_data_files, time_segments_file)
write.csv(sensor_features, snakemake@output[[1]], row.names = FALSE)