create_wide_analysis_data: Creates a "wide" analytic dataset

View source: R/preprocess_data.R

create_wide_analysis_dataR Documentation

Creates a "wide" analytic dataset

Description

Creates a "wide" analytic dataset

Usage

create_wide_analysis_data(
  .valve_data,
  .reference_transition,
  .zero_function,
  .zf_args = list(),
  .include_ppm = FALSE
)

Arguments

.valve_data

a nested dataset (one row per id_transect) with columns chemistry (the chemistry data) and measures (the distance measurements)

.reference_transition

passed to create_layer_idFUN and create_annuli_idFUN

.zero_function

passed to shift_distance

.zf_args

passed to shift_distance

Value

an unnested data.frame containing:

  • id

  • transect

  • distance (shifted by shift_distance)

  • layer: a label for the valve layer from which the observation is measured

  • annuli: a label for the annual layer from which the observation is measured

  • + one column for each element

the layer and annuli variables added


bsaul/elktoeChemistry documentation built on Nov. 17, 2022, 8:10 a.m.