updateObject-methods: Update an attribute of an object

Description Usage Arguments Value Examples

Description

Update an attribute of an object

Usage

1
2
3
4
updateObject(object, attribute, value)

## S4 method for signature 'Experiment'
updateObject(object, attribute, value)

Arguments

object

The object for which we want modification

attribute

The attribute we want to update

value

The value we want to give at the attribute

Value

The object without the attribute we want to delete

Examples

1
2
3
4
5
6
7
8
9
gene1 <- new("RAPDB")
listGenes <- list(gene1)
exp <- new(Class="Experiment",
name="test",
date=Sys.Date(),
genes=listGenes,
databases=list(1),
others=list())
updateObject(exp,"name","test")

Lagaillette/RRicePackage documentation built on May 29, 2019, 2:04 p.m.