Learn R Programming

specmine (version 3.1.6)

values_per_sample: Values per peak

Description

Gets the number of values on each sample.

Usage

values_per_sample(samples.df)

Arguments

samples.df

data frame with the samples' peaks.

Value

Returns a vector with the number of values for each sample.

Examples

Run this code
# NOT RUN {
  ## Example of getting the number of values for each sample
  library(specmine.datasets)
  data(propolis)
  num.values.samples = values_per_sample(propolis$data)
# }

Run the code above in your browser using DataLab