get_peak_values: Get peak values

Description Usage Arguments Value Examples

Description

Gets the peak values from a data frame of samples' peaks.

Usage

1
get_peak_values(samples.df, peak.val)

Arguments

samples.df

data frame with the samples' peaks.

peak.val

peak name.

Value

Returns a vector with the peak values.

Examples

1
2
3
4
  ## Example of getting the peak values
  library(specmine.datasets)
  data(propolis)
  peak.values = get_peak_values(propolis$data, 2.11)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.