report_dataRes {pmartR}R Documentation

Creates a data frame displaying multiple metrics

Description

This function takes in an object of class 'dataRes' and returns a data frame displaying a combination of metrics. The six summarizing metrics include, mean, standard deviation, median, percent observed, minimum, and maximum.

Usage

report_dataRes(dataRes, minmax = FALSE, digits = 2)

Arguments

dataRes

an object of the class 'dataRes', created by edata_summary.

minmax

logical specifying whether or not to include minimum and maximum data in the returned data frame. Defaults to FALSE.

digits

integer indicating the number of decimal places to round

Details

When creating the 'dataRes' object via edata_summary, if the 'by' argument is set to 'sample', then the 'groupvar' argument must be NULL

Value

prints a data frame

Examples


library(pmartRdata)
mylipid <- edata_transform(omicsData = lipid_neg_object, data_scale = "log2")

dataRes_sample <- edata_summary(omicsData = mylipid, groupvar = NULL, by = "sample")
my_output <- report_dataRes(dataRes_sample)


[Package pmartR version 2.4.5 Index]