Learn R Programming

specmine (version 3.1.6)

convert_to_factor: Convert metadata to factor

Description

Convert a metadata's variable to factor.

Usage

convert_to_factor(dataset, metadata.var)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

metadata.var

name of the metadata's variable.

Value

Returns the dataset with the metadata's variable converted to factor.