Learn R Programming

specmine (version 3.0.1)

num_samples: Get number of samples

Description

Get the number of samples from a dataset.

Usage

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

Run this code
# NOT RUN {
  ## Example of getting the number of samples
  data(cachexia)
  number.of.samples = num_samples(cachexia)
# }

Run the code above in your browser using DataLab