Learn R Programming

replyr (version 0.8.2)

buildUnPivotControlTable: Build a moveValuesToColumnsQ() control table that specifies a un-pivot.

Description

Some discussion and examples can be found here: https://winvector.github.io/replyr/articles/FluidData.html and here https://github.com/WinVector/cdata.

Usage

buildUnPivotControlTable(nameForNewKeyColumn, nameForNewValueColumn,
  columnsToTakeFrom, ...)

Arguments

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

Value

control table

See Also

moveValuesToRows, moveValuesToRowsQ

Examples

Run this code
# NOT RUN {
buildUnPivotControlTable("measurmentType", "measurmentValue", c("c1", "c2"))

# }

Run the code above in your browser using DataLab