trans_block_to_wide {gcplyr}R Documentation

Transform blocks to wides

Description

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 data.frame or a list of data.frames

wellnames_sep

String to use as separator for well names between rowname 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 widemeasures data.frame


[Package gcplyr version 1.10.0 Index]