datapasta icon indicating copy to clipboard operation
datapasta copied to clipboard

Number of rows argument in tribble_paste

Open pgensler opened this issue 6 years ago • 4 comments

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 avatar Feb 11 '18 20:02 pgensler

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?

pgensler avatar Mar 25 '18 23:03 pgensler

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.

MilesMcBain avatar Jul 28 '18 04:07 MilesMcBain

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?

pgensler avatar Jul 28 '18 16:07 pgensler

Isn't this what head is for?

jfunction avatar Sep 07 '21 07:09 jfunction