as.matrix.Assessment {AssessORF} | R Documentation

## Tabulate the Category Assignments for Assessment Results Objects

### Description

The `as.matrix` method for `Assessment` and subclass `Results` objects

### Usage

    ## S3 method for class 'Assessment'
    as.matrix(x, ...)

### Arguments

`x` | An object of class `Assessment` and subclass `Results`.
`...` | Additional arguments.

### Details

`as.matrix.Assessment` tabulates and returns the number of times each category appears in the `CategoryAssignments` vector within the given `Results` object. If the number of genes for any the 12 main gene / ORF categories is zero, a count (of zero) will still be included for that category.

### Value

A one-row matrix with the counts for the number of genes/ORFs that fall into each category. The corresponding category codes serve as the column names, and the name of the row is the strain ID.

### See Also

`Assessment-class`

### Examples

    as.matrix(readRDS(system.file("extdata",
                                  "MGAS5005_PreSaved_ResultsObj_Prodigal.rds",
                                  package = "AssessORF")))

[Package AssessORF version 1.0.2 Index]