Increase Dot Matrix Width

When loading a 12-column matrix into R and then printing it, the terminal window in OS X cuts the matrix in half, sorts it to talk, first showing all the rows with the initial 7 columns, and then showing all the rows again with the remaining 5 columns . However, I would like it to display the columns, rather than dividing them. How can i do this?

+5
source share
1 answer

Andrie's answer is good, although a super-duper monitor is sometimes used and 9999 is not enough .; -)

Here is my function to set the screen width:

setWidth <- function (width = NULL) 
{
    if (is.null(width)) {
        columns <- as.numeric(Sys.getenv("COLUMNS"))   
        if (!is.na(columns)) {
            options(width = columns)
        }
        else {
            options(width = 100)
        }
    }
    else {
        options(width = width)
    }
}

This has been reviewed previously.

, , , : , , - options(digits = ...) . . ?options.

+6

All Articles