total_cells: Calculate total number of cells in an object

total_cellsR Documentation

Calculate total number of cells in an object

Description

Calculate the total number of cells in an object. This is done by finding the product of the lengths of each dimension.

Usage

total_cells(x)

Arguments

x

(any suitable object) The object.

Details

Return 0 on NULL.

Value

An integer.

Examples

total_cells(iris)

Deleetdk/kirkegaard documentation built on April 1, 2024, 2:23 a.m.