Learn R Programming

compositions (version 1.40-2)

gsi.simshape: Internal function: Reshape an object to the shape type of another

Description

Reshape an object to the shape of another

Usage

gsi.simshape(x,oldx)

Arguments

x

the data set to be reshaped

oldx

a data set of the intended shape

Value

x, but re-shaped as oldx

Details

This function changes the dimension attribute accordingly.

Examples

Run this code
# NOT RUN {
#gsi.simshape(matrix(1:4,nrow=1),1:3)
# }

Run the code above in your browser using DataLab