powered by
reshape
"reshape"(data, schema, shape, dimnames, start, chunks, `eval`=FALSE)
scidb
schema
The product of the entries of the shape vector must match the product of the dimensions of data.
shape
data
The optional dimnames, start and chunks arguments must match the length of shape if they are supplied.
dimnames
start
chunks
If not specified in either schema or start, the output array will start at the origin.
## Not run: # # Create a 5 x 4 matrix # X <- as.scidb(matrix(rnorm(20),5)) # # # Reshape into a 3-dimensional 2x2x5 array # Y <- reshape(X, c(2,2,5)) # ## End(Not run)
Run the code above in your browser using DataLab