getAttributes: Get all attributes

Description Usage Arguments Value Examples

View source: R/attributes.R

Description

Get all user-defined attributes from a DGEobj except for any listed in the excludeList argument.

Usage

1
2
3
4
getAttributes(
  dgeObj,
  excludeList = list("dim", "dimnames", "names", "row.names", "class")
)

Arguments

dgeObj

A DGEobj

excludeList

A list of attribute names to exclude from the output (default = list("dim", "dimnames", "names", "row.names"))

Value

A named list

Examples

1
2
3
4
5
6
7
    # example DGEobj
    exObj <- readRDS(system.file("exampleObj.RDS", package = "DGEobj"))

    getAttributes(exObj)

    # Get the formula attribute from the design (if set)
    attr(exObj$design, "formula")

DGEobj documentation built on April 10, 2021, 1:07 a.m.