num_samples: Get number of samples

Description Usage Arguments Value Examples

Description

Get the number of samples from a dataset.

Usage

1
num_samples(dataset)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns an integer with the number of samples in the dataset.

Examples

1
2
3
4
  ## Example of getting the number of samples
  library(specmine.datasets)
  data(cachexia)
  number.of.samples = num_samples(cachexia)

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