empty.dimnames.RdRemove all dimension names from an array for compact printing.
empty.dimnames(a)an array, i.e., as special case a matrix.
Returns a with its dimnames replaced by empty character strings.
unname removes the dimnames.
empty.dimnames(diag(5)) # looks much nicer
#>
#> 1 0 0 0 0
#> 0 1 0 0 0
#> 0 0 1 0 0
#> 0 0 0 1 0
#> 0 0 0 0 1
(a <- matrix(-9:10, 4,5))
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] -9 -5 -1 3 7
#> [2,] -8 -4 0 4 8
#> [3,] -7 -3 1 5 9
#> [4,] -6 -2 2 6 10
empty.dimnames(a) # nicer, right?
#>
#> -9 -5 -1 3 7
#> -8 -4 0 4 8
#> -7 -3 1 5 9
#> -6 -2 2 6 10