dot-trim_instrument: Trim instrument

Description Usage Arguments Value

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

1
2
3
4
5
6
.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 Dec. 13, 2021, 10:11 a.m.