View source: R/formatting_flex_prms.R
summary.flex_prms | R Documentation |
summary method for class "flex_prms".
## S3 method for class 'flex_prms'
summary(object, ...)
## S3 method for class 'summary.flex_prms'
print(
x,
...,
round_digits = drift_dm_default_rounding(),
dependencies = TRUE,
cust_parameters = TRUE
)
object |
an object of class |
... |
additional arguments passed forward to the respective method |
x |
an object of class |
round_digits |
integer, indicating the number of decimal places (round) to be used (default is 3). |
dependencies |
logical, controlling if a summary of the special dependencies shall be printed (see the "special dependency instruction" in the details of flex_prms) |
cust_parameters |
logical, controlling if a summary of the custom parameters shall be printed (see the "additional/custom parameter instruction" in the details of flex_prms) |
The summary.flex_prms()
function creates a summary object containing:
prms_matrix: All parameter values across all conditions.
unique_matrix: A character matrix, showing how parameters relate across conditions.
depend_strings: Special Dependencies, formatted as a string.
cust_prms_matrix: (if they exist), a matrix containing all custom parameters.
The print.summary.flex_prms()
function displays the summary object in a
formatted manner.
summary.flex_prms()
returns a list of class summary.flex_prms
(see the
Details section summarizing each entry of this list).
print.summary.flex_prms()
returns invisibly the summary.flex_prms
object.
# create a flex_prms object
flex_obj <- flex_prms(c(a = 1, b = 2), conds = c("foo", "bar"))
sum_obj <- summary(flex_obj)
print(sum_obj)
# the print function for the summary object is identical to the print
# function of the flex_prms object
print(flex_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.