| dmai-methods | R Documentation |
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.
## 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, ...)
x, object |
a dmai result. |
digits |
significant digits of printed numbers (default 4). |
... |
passed on (to |
keep.rownames, row.names, optional |
as in |
component |
name or number of the component to convert (default: the first one). |
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.
Muhammad Yaseen (myaseen208@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.