powered by
Return the CLASS property or number of dimensions.
CLASS (v)ndim (v)
ndim (v)
An ObjectArray.
CLASS returns a character giving the CLASS property of the ObjectArray. This is the class or classes of the objects within the array.
<OBJECT> means that the ObjectArray can contain any objects.
The ndim function returns an integer, giving the number of dimensions.
ObjectArray
# NOT RUN { v <- ObjectArray (c (2, 5), CLASS="MyClass") CLASS (v) class (v) ndim (v) # }
Run the code above in your browser using DataLab