Learn R Programming

specmine (version 3.1.6)

peaks_per_sample: Peaks per sample

Description

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

Usage

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

Run this code
# NOT RUN {
    ## Example of counting the peaks in a sample
	library(specmine.datasets)
    data(propolisSampleList)
    num.peaks.sample = peaks_per_sample(propolisSampleList, 4)
# }

Run the code above in your browser using DataLab