Learn R Programming

specmine (version 3.1.6)

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
# NOT RUN {
  ## Example of getting the peak values
  library(specmine.datasets)
  data(propolis)
  peak.values = get_peak_values(propolis$data, 2.11)
# }

Run the code above in your browser using DataLab