R: Internal function: Reshape an object to the shape type of...

gsi.simshape {compositions} | R Documentation

## 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

### Details

This function changes the dimension attribute accordingly.

### Value

`x`, but re-shaped as `oldx`

### Note

Do not use gsi.* functions directly since they are internal functions of the package. To use a gsi function, attach the `gsi` environment.

### Author(s)

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

### Examples

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

[Package compositions version 2.0-2 Index]