Learn R Programming

multbxxc (version 1.0.3)

redim: New Dimensions

Description

Write new dimension vector while keeping the old memory

Usage

redim(x, di)

Value

None

Arguments

x

A numeric array

di

An integer vector, new dimensions

Examples

Run this code
a=matrix(as.double(1:12), 6, 2)
redim(a, c(3, 4))
dim(a)
# [1] 3 4

Run the code above in your browser using DataLab