View source: R/tableContracts.R
| PSW2PSL | R Documentation |
PSW2PSL() melts spectra columns named <ID>.<OCID> back to canonical
long spectra rows. Derived RotD components such as D50 and D100 are
returned as ordinary OCID values.
PSW2PSL(.x, by = "auto", ids = c("PSA", "PSV", "SD"))
.x |
Wide spectra table with a |
by |
Metadata columns to keep as row keys. The default |
ids |
Preferred order for spectra IDs. Other IDs present in |
A canonical long spectra data.table.
psw <- data.table::data.table(RecordID = "R1", Tn = 0.1, PSA.H1 = 1)
PSW2PSL(psw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.