rray_size: Find the size of an array

View source: R/size.R

rray_sizeR Documentation

Find the size of an array

Description

rray_size() returns the total number of elements in an array, computed as the product of its dimensions.

Usage

rray_size(x)

Arguments

x

An array.

Value

A single double representing the total number of elements.

Examples

rray_size(1:5)
rray_size(array(1, c(2, 3)))
rray_size(array(1, c(2, 3, 4)))

rray documentation built on Nov. 17, 2026, 5:07 p.m.