Learn R Programming

DGEobj (version 1.0.1)

setAttribute: Set an attribute

Description

Set an attribute on a DGEobj or on a specific item within a DGEobj.

Usage

setAttribute(dgeObj, attrib, attribName)

Arguments

dgeObj

A DGEobj

attrib

An attribute value to add

attribName

A name for the attribute

Value

A DGEobj

Details

The function adds or updates the attribute passed to it. To remove an attribute, pass NULL as the attribute value.

Examples

Run this code
# NOT RUN {
    # example DGEobj
    exObj <- readRDS(system.file("exampleObj.RDS", package = "DGEobj"))

    # Assign attribute to a DGEobj
    exObj <- setAttribute(exObj, "RNA-SEQ", "Platform")

    # Set attributes on an item inside a DGEobj
    exObj[["counts"]] <- setAttribute(exObj[["counts"]], FALSE, "normalized")

# }

Run the code above in your browser using DataLab