arr: Abbreviated scalar

View source: R/vector.R

arrR Documentation

Abbreviated scalar

Description

Abbreviated scalar

Usage

arr(data = NA, dim = length(data), dimnames = NULL)

Arguments

data

a vector (including a list or expression vector) giving data to fill the array. Non-atomic classed objects are coerced by as.vector.

dim

the dim attribute for the array to be created, that is an integer vector of length one or more giving the maximal indices in each dimension.

dimnames

either NULL or the names for the dimensions. This must be a list (or it will be ignored) with one component for each dimension, either NULL or a character vector of the length given by dim for that dimension. The list can be named, and the list names will be used as names for the dimensions. If the list is shorter than the number of dimensions, it is extended by NULLs to the length required.


D-Se/ergo documentation built on May 24, 2022, 5:20 p.m.