addAttribute-methods: Add an attribute to an object.

Description Usage Arguments Value Examples

Description

Add an attribute to an object.

Usage

1
2
3
4
5
6
7
addAttribute(object, name, value)

## S4 method for signature 'Experiment'
addAttribute(object, name, value)

## S4 method for signature 'Gene'
addAttribute(object, name, value)

Arguments

object

The object for which we want modification.

name

The name of the attribute we want to add.

value

The value we want to give to the attribute.

Value

The object without the attribute you want to delete.

Examples

1
2
3
4
5
6
7
8
exp <- new(Class="Experiment",
name="test",
date=Sys.Date(),
databases=list(1),
others=list())
exp <- addAttribute(exp, "test", "value")
gene <- new("RAPDB")
gene <- addAttribute(gene, "test", "value")

rricepackage/rRice documentation built on May 24, 2019, 2:53 p.m.