Re: [R] how to transform db query result into a set of timeseries

2016-09-07 Thread Stef Mientki
is df then I think you can construct your series simply with zonnen <- xts( cbind(df$M. df$G, df$N), order.by = as.POSIXct( df$Date, format="%Y-%m-%d %H:%M:%S") ) There are several other details in the function that you may find useful. Paul Gil

[R] how to transform db query result into a set of timeseries ?

2016-09-05 Thread Stef Mientki
hello, I've a number of timeseries into a database and want to display these timeseries into graph. Now the code below works well, but as the user can select which timeseries should be shown (up to 20 timeseries) the code below should be dynamic and can be quiet large and complex. Is there