Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] head.data.table print columns fit to screen width #1497

Closed
nverno opened this issue Jan 14, 2016 · 2 comments · Fixed by #4074
Closed

[Request] head.data.table print columns fit to screen width #1497

nverno opened this issue Jan 14, 2016 · 2 comments · Fixed by #4074
Milestone

Comments

@nverno
Copy link

@nverno nverno commented Jan 14, 2016

Would it be useful for head.data.table to have an option to print only the head of columns that fit the screen width, and summarise the rest? I was imagining something like the printed output from the head of a tbl_df in dplyr. I think it is nice for tables with many columns.

@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Feb 8, 2016

@nverno could you add an example from dplyr that exemplifies what you have in mind?

@arunsrinivasan
Copy link
Member

@arunsrinivasan arunsrinivasan commented Feb 8, 2016

@MichaelChirico it only prints a few columns and displays the others as variables not shown. I'm not entirely sure how it's helpful.. but shouldn't hurt to add an argument...

require(data.table)
dt = setDT(lapply(1:100, function(x) 1:3))
dt
dplyr::tbl_dt(dt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants