dmai-methods: Methods for dmai results

dmai-methodsR Documentation

Methods for dmai results

Description

The analysis functions of dmai return the named list they have always returned, now with the class c("dmai_<analysis>", "dmai_result", "list"). Components are read as before (x$ANOVA, x[["Means"]]); the methods below print, summarise and plot the result and turn any component into a data.table.

Usage

## S3 method for class 'dmai_result'
print(x, digits = 4L, ...)

## S3 method for class 'dmai_result'
summary(object, ...)

## S3 method for class 'summary.dmai_result'
print(x, ...)

## S3 method for class 'dmai_result'
format(x, ...)

## S3 method for class 'dmai_result'
as.data.table(x, keep.rownames = FALSE, ..., component = 1L)

## S3 method for class 'dmai_result'
as.data.frame(x, row.names = NULL, optional = FALSE, ..., component = 1L)

## S3 method for class 'dmai_result'
plot(x, ...)

Arguments

x, object

a dmai result.

digits

significant digits of printed numbers (default 4).

...

passed on (to print() of the components, or to the plotting function for plot()).

keep.rownames, row.names, optional

as in data.table::as.data.table() and as.data.frame(); row names of a matrix or data frame component are always kept, in a first column term.

component

name or number of the component to convert (default: the first one).

Value

print() returns x invisibly; summary() an object of class summary.dmai_result; format() a character string; as.data.table() and as.data.frame() the chosen component as a table; plot() a ggplot object.

Author(s)

Muhammad Yaseen (myaseen208@gmail.com)


dmai documentation built on Nov. 9, 2026, 9:07 a.m.