Learn R Programming

specmine (version 3.1.6)

remove_peaks_interval: Remove interval of peaks

Description

Removes peaks from a given interval.

Usage

remove_peaks_interval(sample.df, peak.val.min, peak.val.max)

Arguments

sample.df

data frame with the samples' peaks.

peak.val.min

minimum peak value.

peak.val.max

maximum peak value.

Value

Returns a data frame with the filtered samples' peaks.

Examples

Run this code
# NOT RUN {
  ## Example of removing a interval of peaks
  library(specmine.datasets)
  data(propolisSampleList)
  samples.df = remove_peaks_interval(propolisSampleList[[1]], 2, 8.05)
# }

Run the code above in your browser using DataLab