Skip to contents

Takes blocks and returns them in a wide format

Usage

trans_block_to_wide(
  blocks,
  wellnames_sep = "",
  nested_metadata = NULL,
  colnames_first = FALSE
)

Arguments

blocks

Blocks, either a single dataframe or a list of dataframes

wellnames_sep

String to use as separator for well names between row name and column name (ordered according to colnames_first

nested_metadata

A logical indicating the existence of nested metadata in the blockmeasures list, e.g. as is typically output by read_blocks. If NULL, will attempt to infer existence of nested metadata

colnames_first

In the wellnames created by paste-ing the rownames and column names, should the column names come first?

Value

A single wide-shaped dataframe