Fixes

  • sg_apply(dt_prep_sets): add extra "_row<row-number>" string to prep_label column of dt_prep_sets input when combining with Savitzky-Golay parameter sets. This modification makes sure that cartesian products of existing preprocessing sets supplied as input are correctly formed with the repeated Savitzky-Golay plans.

Fixes

  • failed to commit changes. Keeping entry for reproducibility. The intended fix is is in version 0.3.4 (see above).

Fixes

  • snv_apply(X): add prep_params as list-column with a single-row data.table (snv = NA) to the output when X is provided. This makes binding outputs to other (pre)processed collections of spectra possible without further intervention; also, append_rows = TRUE will work with other methods, when output of snv_apply() is used as input of other *_apply() functions.

Fixes

  • sg_apply(): allow joins of Savitzky-Golay plans and preprocessing labels, and then also prepared Savitzky-Golay plans with inputted dt_prep_sets, when there is duplicated is. This is the case when dt_prep_sets input has already multiple rows (multiple collections) of spectra. Now, the desired duplicate joins are explicitly allowed by setting allow.cartesian = TRUE for respective data.table joins inside the sg_make_dt_prep() helper.

Features

  • Implement colmean_group_apply() and group label constructor ids_apply.R(). This is to apply column means to to spectral collections, each by a group label.
  • patch sg_apply() so that the extra "-snv" that got accidentally added to both prep_set and prep_label is not there anymore.

Features

  • added snv_apply() to compute the standard normal variate (SNV) of spectral collections (#15).
  • added sg_apply() to process spectral collections with Savitzky-Golay smoothers with different parameter sets (derivative order, window size, polynomial degree).

Chores

  • Started semantic versioning via {fledge}