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

added option show_classes for print.tbl_df #1276

Closed
wants to merge 4 commits into from
Closed

Conversation

w9
Copy link

@w9 w9 commented Jul 17, 2015

Adding option show_classes for print.tbl_df

I think being able to see classes directly would drastically increase my productivity and lower the chance of mistakes. Especially sometimes I need to distinguish between character and factor, or between double and integer etc. Plus, we have class names for omitted columns then why not the columns that are actually shown?

image

Adding option m for print.tbl_df

Instead of printing the top 10 by default, I changed it to printing 5 top and 5 bottom. Users can set the added m option to change how many bottom rows to show. Now the option dplyr.show_min will dictate the default values of both n and m, and is set to 5.

I made so that setting one of n or m without the other implies the other to be 0. So the behavior of previous code print(n=...) will not change.

image

image

image

image

@hadley
Copy link
Member

hadley commented Jul 21, 2015

I don't think this needs to be an option - it should always happen. Can you please:

  • fix the mangled code
  • use () instead of <> (to be consistent)
  • add a bullet point to NEWS

@cosinequanon
Copy link
Contributor

This is cool, would love to see it actually merged

@hadley hadley closed this in 6037558 Aug 24, 2015
krlmlr pushed a commit to krlmlr/dplyr that referenced this pull request Mar 2, 2016
@lock
Copy link

lock bot commented Jan 19, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants