02_language-like_functions: Language-Like Functions

Description Usage Arguments Details See Also Examples

Description

Return the CLASS property or number of dimensions.

Usage

1
2
3
CLASS (v)

ndim (v)

Arguments

v

An ObjectArray.

Details

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.

See Also

ObjectArray

Examples

1
2
3
4
5
6
v <- ObjectArray (c (2, 5), CLASS="MyClass")

CLASS (v)
class (v)

ndim (v)

vectools documentation built on June 7, 2021, 9:08 a.m.