paste_blocks {gcplyr} | R Documentation |
Paste a list of blocks into a single block
Description
This function uses paste to concatenate the same-location entries of a list of data.frames together (i.e. all the first row-first column values are pasted together, all the second row-first column values are pasted together, etc.)
Usage
paste_blocks(blocks, sep = "_", nested_metadata = NULL)
Arguments
blocks |
Blocks, either a single data.frame or a list of data.frames |
sep |
String to use as separator for output pasted values |
nested_metadata |
A logical indicating the existence of nested metadata
in the |
Value
If nested_metadata = TRUE (or is inferred to be TRUE), a list
containing a list containing: 1. a data.frame
with the
pasted data values from blocks
, and 2. a vector with the
pasted metadata values from blocks
If nested_metadata = FALSE (or is inferred to be FALSE), a list
containing data.frame
's with the pasted values from
blocks