Library: | xplore |
See also: | dim paf reshape |
Quantlet: | reduce | |
Description: | Deletes all dimensions with only a single component. |
Usage: | y = reduce (x) | |
Input: | ||
x | array | |
Output: | ||
y | array, dim(y) contains no 1 |
library("xplore") x = matrix(3, 1, 2, 1) reduce(x)
Contents of y [1,] 1 1 [2,] 1 1 [3,] 1 1