split: Split an 'AnalysisData' object

splitR Documentation

Split an AnalysisData object

Description

Split an object of class AnalysisData into a list based a class grouping variable.

Usage

split(x, cls = "class")

## S4 method for signature 'AnalysisData'
split(x, cls = "class")

Arguments

x

S4 object of class AnalysisData

cls

sample information column to use for splitting

Value

A list of AnalysisData objects.

Examples

library(metaboData)

d <- analysisData(abr1$neg,abr1$fact)

## Split the data set based on the 'day' class information column
d <- split(d,cls = 'day')

print(d)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.