Learn R Programming

specmine (version 2.0.3)

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.

Examples

Run this code
# NOT RUN {
  ## Example of converting a metadata's variable to factor
  data(cassavaPPD)
  dataset = convert_to_factor(cassavaPPD, "ppds")
# }

Run the code above in your browser using DataLab