prettyTable {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 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.
prettyTable(mytable)
mytable |
a matrix |
a matrix with character elements
Adrian Dusa
University of Bucharest, Faculty of Sociology and Social Work
dusa.adrian@unibuc.ro
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(prettyTable(mymatrix))