Commit ffee8972 authored by jml's avatar jml
Browse files

add levelValue as constraint when spreading the dataset

parent 62f497fb
......@@ -13,7 +13,7 @@ frostlyr_df_data <- function(x,res){
tmp <- friendlyts::ts_spread(df=res, col_date=c("date"),
col_key=c("CO_NAME","ID"),col_target="value",
col_key=c("CO_NAME","ID","levelValue"),col_target="value",
precision=x$timeObj$precision(),tzone=x$timeObj$tzone(),
date_type="%Y-%m-%dT%H:%M:%OSZ")
......@@ -39,7 +39,7 @@ frostlyr_df_data <- function(x,res){
frostlyr_df_qa <- function(x,res){
tmp <- friendlyts::ts_spread(df=res, col_date=c("date"),
col_key=c("CO_NAME","ID"),col_target="qualityCode",
col_key=c("CO_NAME","ID","levelValue"),col_target="qualityCode",
precision=x$timeObj$precision(),tzone=x$timeObj$tzone(),
date_type="%Y-%m-%dT%H:%M:%OSZ")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment