Learn R Programming

specmine (version 1.0)

stats_by_variable: Statistics of variables

Description

Get a summary of statistics of the variables.

Usage

stats_by_variable(dataset, variables = NULL, variable.bounds = NULL)

Arguments

dataset
list representing the dataset from a metabolomics experiment.
variables
allows to define which variables to calculate the stats (if numbers, indexes are assumed).
variable.bounds
allow to define an interval of variables (if numeric).

Value

Returns a vector with the a summary of statistics of the variables.

Examples

Run this code
     ## Example of getting stats of variables
     data(cachexia)
     variable.stats.result = stats_by_variable(cachexia)

Run the code above in your browser using DataLab