Bag: A list-like Object

Description Usage Arguments Class Fields and Methods Author(s) See Also Examples

Description

Create a list of values. Lists inside an Object behave as by value (if the list is modified in a method, the original list is not updated). Therefore, Bag replace this behaviour extending Object and allowing to save reference-lists inside objects.

Usage

1

Arguments

...

Values to store in the Bag object.

Class

Package: galgo
Class Bag

Object
~~|
~~+--Bag

Directly known subclasses:

public static class Bag
extends Object

Fields and Methods

Methods:

length Gets the length of the object as its list version.
print Prints the representation of the Bag object.
summary Prints the representation of the Bag object.

Methods inherited from Object:
as.list, unObject, $, $<-, [[, [[<-, as.character, attach, clone, detach, equals, extend, finalize, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save

Author(s)

Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K. http://www.bip.bham.ac.uk/bioinf

See Also

See also list().

Examples

1
2
3
4
  b <- Bag(a=1,b=2,c=3)
  b
  as.list(b)
  unObject(b)

galgo documentation built on May 2, 2019, 4:20 a.m.