deleteAttribute-methods: Delete an attribute which has been add by the user.

Description Usage Arguments Value Examples

Description

Delete an attribute which has been add by the user.

Usage

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

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

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

Arguments

object

The object for which we want modification.

name

The name of the attribute we want to delete.

Value

The object without the attribute you want to delete.

Examples

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

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