datapasta
datapasta copied to clipboard
Number of rows argument in tribble_paste
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?
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?
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.
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?
Isn't this what head
is for?