Learn R Programming

compositions (version 2.0-4)

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)

Value

x, but re-shaped as oldx

Arguments

x

the data set to be reshaped

oldx

a data set of the intended shape

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Details

This function changes the dimension attribute accordingly.

Examples

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

Run the code above in your browser using DataLab