R/RowsColumns.R
pivot_to_rowrecs.Rd
Map data records from block records (where each record may be more than one row) to row records (where each record is a single row). Values specified in rowKeyColumns determine which sets of rows build up records and are copied into the result.
pivot_to_rowrecs(
data,
columnToTakeKeysFrom,
columnToTakeValuesFrom,
rowKeyColumns,
...,
sep = NULL,
checkNames = TRUE,
checkKeys = TRUE,
strict = FALSE,
allow_rqdatatable = FALSE
)
layout_to_rowrecs(
data,
columnToTakeKeysFrom,
columnToTakeValuesFrom,
rowKeyColumns,
...,
sep = NULL,
checkNames = TRUE,
checkKeys = TRUE,
strict = FALSE,
allow_rqdatatable = FALSE
)
data.frame to work with (must be local, for remote please try moveValuesToColumns*
).
character name of column build new column names from.
character name of column to get values from.
character array names columns that should be table keys.
force later arguments to bind by name.
character if not null build more detailed column names.
logical, if TRUE check names.
logical, if TRUE check keyColumns uniquely identify blocks (required).
logical, if TRUE check control table name forms
logical, if TRUE allow rqdatatable shortcutting on simple conversions.
new data.frame with values moved to columns.