R/LocalOps.R
build_unpivot_control.RdSome discussion and examples can be found here: https://winvector.github.io/FluidData/FluidData.html and here https://github.com/WinVector/cdata.
build_unpivot_control( nameForNewKeyColumn, nameForNewValueColumn, columnsToTakeFrom, ... )
| nameForNewKeyColumn | character name of column to write new keys in. |
|---|---|
| nameForNewValueColumn | character name of column to write new values in. |
| columnsToTakeFrom | character array names of columns to take values from. |
| ... | not used, force later args to be by name |
control table
#> measurmentType measurmentValue #> 1 c1 c1 #> 2 c2 c2