summary.mco.result {drdR} | R Documentation

## Summarize MCO results

### Description

Results obtained from `mco_classify()` can be by simply calling `summary()` on the returned object, or on the `c$results` data.frame.

### Usage

    ## S3 method for class 'mco.result'
    summary(result_set, by = NULL)

### Arguments

`result_set` | List returned by `mco_classify()`.
`by` | Column used to group summary (e.g. ghm), or NULL.

### Details

You can use the `by` parameter to group summary rows on a specific key (e.g. 'ghm'). By default the summary will only have a single row (total), which you can also access directly with `c$summary`.

### Examples

    c <- mco_classify(m, l)

    summary(c)
    summary(c, by = 'ghm')
    summary(c$results, by = 'ghm') # Does the same thing

[Package drdR version 2020.09.21 Index]