undim returns its input with the dim attribute removed

undim(x)

Arguments

x

an object

Value

x without dim attribute

Author

Jens Oehlschlägel

See also

unclass<-, unclass, unname, dim

Examples

  x <- matrix(1:12, 3)
  x
#>      [,1] [,2] [,3] [,4]
#> [1,]    1    4    7   10
#> [2,]    2    5    8   11
#> [3,]    3    6    9   12
  undim(x)
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12