untensor: Removes indices/dimensions from a tensor
Description
untensor is more or less the inverse of to.tensor. It flattens
tensorial dimensions. However the result is still a tensor.
Usage
untensor(X,i=NULL,name=NULL,pos=1,by=NULL)
Value
a tensor with the dimensions i removed.
Arguments
X
the tensor
i
the names of the dimensions to be removed and combined to a
single new
one as a character vector or a named list of character vectors if
the remove should be done in multiple chunks.
pos and name is in this case ignored.
name
the name of the new dimension to replace the others