View source: R/tableContracts.R
| TSL2TSW | R Documentation |
TSL2TSW() casts a canonical long TSL table with t, s, ID, and
OCID columns to wide TSW form with columns such as AT.H1, VT.H1,
and DT.H1.
TSL2TSW(.x, by = "auto", ids = c("AT", "VT", "DT"))
.x |
Canonical |
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 wide data.table keyed by <metadata>, t.
tsl <- data.table::data.table(RecordID = "R1", OCID = "H1",
ID = "AT", t = c(0, 0.01), s = c(1, 2))
TSL2TSW(tsl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.