pretty.table {QCA} | R Documentation |
R prints the content of a matrix with the values alligned to the right. This function computes the number of spaces needed to reach the middle of the column (minus one for an odd number of characters) and adds a certain number of spaces to each value from the table in order to alling these values to the middle.
pretty.table(mytable)
mytable |
a matrix |
a matrix with character elements
Adrian Dusa
Romanian Social Data Archive, University of Bucharest
adi@roda.ro
'print'
mymatrix <- matrix(sample(0:1, 20, replace=TRUE), nrow=5) colnames(mymatrix) <- c("First", "Second", "Third", "Fourth") rownames(mymatrix) <- c("One", "Two", "Three", "Four", "Five") print(pretty.table(mymatrix))