Learn R Programming

specmine (version 1.0)

get_peak_values: Get peak values

Description

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

Usage

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

Run this code
  ## Example of getting the peak values
  data(propolis)
  peak.values = get_peak_values(propolis$data, 2.11)

Run the code above in your browser using DataLab