dot-trim_instrument: Trim instrument

.trim_instrumentR Documentation

Trim instrument

Description

Helper for split_instruments, actually does all of the hard work of paring down each instrument's data and passing it off to the pre and post processer helpers.

Usage

.trim_instrument(
  inst,
  lookup = anrlab_instruments,
  record_id_col = "record_id",
  verbose = TRUE
)

Arguments

inst

Instrument data

lookup

Instrument name-prefix lookup table from generate_lookup

record_id_col

Defaults to record_id

verbose

Logical, inherits from split_instrument, prints the name of each instrument as it's processing it. Useful for debugging.

Value

Smaller dataframe that's pivoted to long form and postprocessed


tsostarics/anrlab documentation built on Nov. 6, 2022, 3:54 a.m.