zeros | R Documentation |
Inspired by MatLab's zeros function to easily create a multi-dimensional array populated with zeros.
zeros(dims)
dims |
A numeric vector representing the dimensions of the array. |
A multi-dimensional array of zeros.
# Create a 10-row by 2-column matrix of zeros zeros(dims = c(10, 2)) # Create a 3-d array with 10-rows and 2-columns zeros(dims = c(3, 10, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.