serialize_df {preregr} | R Documentation |
"Serialize" a data frame or (pre)registration specification
Description
When exporting a (pre)registration specification to YAML or JSON, the most human-readable format differs from the way data frames are comprised of lists. Data frames are lists that are bound together as columns; and so, when saving a data frame to YAML or JSON, the data in each column is combined (e.g. first all item identifiers, then all item labels, then all item descriptions, etc). However, for humans, it makes more sense to have all data belonging to the same item close together. These functions do that processing.
Usage
serialize_df(x, idCol = NULL)
structure_for_serialization(x)
Arguments
x |
For |
idCol |
If not |
Value
The restructured list
[Package preregr version 0.2.9 Index]