Skip to content

Limits on nrow and ncol when printing to screen #756

Closed

Description

@thomasd2

It seems like matrices with more than 20 rows or columns are not printed when typing the name of the object. Is there a reason why - the limit seems low, I often want to look for instance at a matrix with 50 rows and 5 columns. I can use View() but that requires more typing. Thanks!

Activity

  1. kbenoit commented on May 25, 2017

    @kbenoit
    Collaborator

    See ?print.dfm. That involves even more typing I am afraid! If you have suggestions on how this would be better set, we'd be happy to hear it. Could add to global quanteda options, for instance.

  2. thomasd2 commented on May 26, 2017

    @thomasd2
    Author

    Thanks. Some solution allowing to set this according to personal tastes when loading the package or even permanently (through specification in Rprofile??) would be great.

  3. kbenoit commented on May 28, 2017

    @kbenoit
    Collaborator

    How about

    quanteda_print_dfm_ndoc
    quanteda_print_dfm_nfeature
    

    as global options?

    So the new signature for print.dfm() would be:

    setMethod("print", signature(x = "dfm"), 
              function(x, show.values = FALSE, show.settings = FALSE, show.summary = TRUE, 
                       ndoc = getOption("quanteda_print_dfm_ndoc"), 
                       nfeature = getOption("quanteda_print_dfm_nfeature"), ...) {
    ...

    and we would set these options in zzz.R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions