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

Number of rows argument in tribble_paste #65

Open
pgensler opened this issue Feb 11, 2018 · 4 comments
Open

Number of rows argument in tribble_paste #65

pgensler opened this issue Feb 11, 2018 · 4 comments

Comments

@pgensler
Copy link

pgensler commented Feb 11, 2018

Working with beginners, it could be useful to include an argument for number of rows to output, so if you wanted to only have 5 or 10 rows from a larger dataset to create an issue they are having. Could have this default to the maximum length of the dataframe?

@pgensler
Copy link
Author

Thinking about this, maybe having a tribble_paste where it defaults to the first 5 rows of your dataframe would help to improve reprex's?

@MilesMcBain
Copy link
Owner

MilesMcBain commented Jul 28, 2018

I think this is a decent suggestion. If I did implement it I think it should be its own function that potentially references 'reprex', 'head', 'top' etc in the name.

@pgensler
Copy link
Author

Yeah, maybe having a twitter poll could help to figure out what that number should be, or asking in the R4DS online community could be a good starting point?

@jfunction
Copy link

Isn't this what head is for?

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

No branches or pull requests

3 participants