RAttributeCollection Class

Represents a collection of attributes of R objects.

Definition

Namespace: Extreme.Data.R
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public class RAttributeCollection : IDictionary<string, RObject>, 
	ICollection<KeyValuePair<string, RObject>>, IEnumerable<KeyValuePair<string, RObject>>, 
	IEnumerable
Inheritance
Object  →  RAttributeCollection
Implements
ICollection<KeyValuePair<String, RObject>>, IDictionary<String, RObject>, IEnumerable<KeyValuePair<String, RObject>>, IEnumerable

Remarks

Use the RAttributeCollection class to access the attributes of an R object. The class is a dictionary that maps attribute names (strings) to attributes, which can be objects of any type.

Constructors

RAttributeCollection Constructs a new attribute collection from a dictionary of items.

Properties

Count Gets the number of attributes in the collection.
IsReadOnly Gets whether the collection is read-only.
Item Gets or sets an attribute in the collection.
Keys Gets a collection of the names of the attributes.
Values Gets a collection of the values of the attributes.

Methods

Add Adds a new attribute to the collection.
Clear Removes all attributes from the collection.
ContainsKey Returns whether the collection contains an attribute with the specified name.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates over the attributes in the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes the attribute with the specified name from the collection.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetIntegers Attempts to get the value of an integer vector attribute.
TryGetString Attempts to get the value of a string attribute.
TryGetStrings Attempts to get the value of a string vector attribute.
TryGetValue Attempts to retrieve the value of the attribute with the specified key from the collection.

Fields

Empty Represents an empty, read-only attribute collection.

Extension Methods

Group<KeyValuePair<String, RObject>> Returns a grouping by the unique elements in a sequence.
(Defined by Grouping)
Group<KeyValuePair<String, RObject>> Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping)
Sum<KeyValuePair<String, RObject>> Computes the sum of the sequence of values.
(Defined by ArrayMath)
Sum<KeyValuePair<String, RObject>, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath)

See Also