set_dim | R Documentation |
Set dimensions of an Object
set_dim(x, dim)
set_dimnames(x, value)
x |
an R object, for example a matrix, array or data frame. |
dim |
integer vector, see also |
value |
For the default method, either |
base::dim
x <- 1:12
set_dim(x, c(3, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.