peaks_per_sample: Peaks per sample

Description Usage Arguments Value Examples

Description

Counts number of peaks in a sample (given its index).

Usage

1
peaks_per_sample(sample.list, sample.index)

Arguments

sample.list

list of data frames with the samples' peaks.

sample.index

sample index.

Value

Return a integer value with the number of peaks in the sample.

Examples

1
2
3
4
    ## Example of counting the peaks in a sample
	library(specmine.datasets)
    data(propolisSampleList)
    num.peaks.sample = peaks_per_sample(propolisSampleList, 4)

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