fromDatatoMzQC: Allow conversion of plain named lists of R objects (from...

View source: R/mzQC.R

fromDatatoMzQCR Documentation

Allow conversion of plain named lists of R objects (from jSON) to mzQC objects

Description

Allow conversion of plain named lists of R objects (from jSON) to mzQC objects

Usage

fromDatatoMzQC(mzqc_class, data)

Arguments

mzqc_class

Prototype of the class to convert 'data' into

data

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

Examples

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


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