total_cells | R Documentation |
Calculate the total number of cells in an object. This is done by finding the product of the lengths of each dimension.
total_cells(x)
x |
(any suitable object) The object. |
Return 0 on NULL
.
An integer.
total_cells(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.