2_object_arrays: Object Arrays

Description Usage Arguments Details Examples

Description

One, two and higher-dimensional object arrays.

Usage

1
2
ObjectArray (dim, names, default.value=NA)
as.ObjectArray (x, dim, names)

Arguments

dim

Dimensions, same as dim, in standard array objects.

names

List of names, which should match dim, above.

default.value

Default value, for each element.

x

A list with the same length as prod (dims).

Details

ObjectArray(s) are similar to list matrices and list arrays, however, there are some differences, especially, in the way that they're formatted.

Examples

1
2
3
x = ObjectArray (c (2, 2) )
x [[1, 1]] = x [[2, 2]] = x
x

vectools documentation built on Jan. 9, 2020, 5:09 p.m.