How to suppress zero printing in a table (zero.print="" not working)
===

I have diagonal matrices with NAs and zeros I want to hide. 

na.print = "" is working fine, but zero.print = "." seems to treating 0.00 as != 0 ?

Here's a runnable example with print out so you can see what I mean:

    x <- matrix(c(0.01, NA, NA, NA, 0.00, 0.00, NA, NA, 0.00, 0.00, -0.01, NA, 0.00, 0.00, 0.00, 0.00), nrow=4, byrow=TRUE)
    x
             [,1] [,2]  [,3] [,4]
        [1,] 0.01   NA    NA   NA
        [2,] 0.00    0    NA   NA
        [3,] 0.00    0 -0.01   NA
        [4,] 0.00    0  0.00    0
    
    print.table(x, na.print="", zero.print=".")
             [,1]  [,2]  [,3]  [,4] 
        [1,]  0.01                  
        [2,]  0.00  0.00            
        [3,]  0.00  0.00 -0.01      
        [4,]  0.00  0.00  0.00  0.00
