View source: R/tableContracts.R
| TSW2TSL | R Documentation |
TSW2TSL() melts wide time-series columns named <ID>.<OCID> back to
canonical TSL rows.
TSW2TSL(.x, by = "auto", ids = c("AT", "VT", "DT"))
.x |
Wide |
by |
Metadata columns to keep as row keys. The default |
ids |
Preferred order for signal IDs in the output columns. Other IDs
present in |
A canonical long data.table with metadata columns, OCID, ID,
t, and s.
tsw <- data.table::data.table(RecordID = "R1", t = c(0, 0.01),
AT.H1 = c(1, 2))
TSW2TSL(tsw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.