fromDatatoMzQCobj: Allow conversion of a plain R object (obtained from jSON) to...

View source: R/mzQC.R

fromDatatoMzQCobjR Documentation

Allow conversion of a plain R object (obtained from jSON) to an mzQC object

Description

If you have a list of elements, call fromDatatoMzQC.

Usage

fromDatatoMzQCobj(mzqc_class, data)

Arguments

mzqc_class

Prototype of the class to convert 'data' into

data

A datastructure of R lists/arrays as obtained by 'jsonlite::fromJSON()'

Examples

 data = MzQCcvParameter$new("acc", "myName", "value")
 data_recovered = fromDatatoMzQCobj(MzQCcvParameter, jsonlite::fromJSON(jsonlite::toJSON(data)))
 data_recovered


rmzqc documentation built on May 29, 2024, 12:06 p.m.