# A tibble: 12 x 4
# Groups: EDUCD [4]
EDUCD major avg med
<fct> <chr> <dbl> <dbl>
1 Bachelor's accounting 82201. 59000
2 Bachelor's econ 95268. 60000
3 Bachelor's other BA 63287. 46200
4 Master's accounting 108625. 80000
I would like the lines with the information about the tibble size and the groups to go away. (I also wouldn't mind getting rid of the line beginning <fct>.
On the second point I'm not sure why you are bothered by how the console output is formatted. If you wish to use the output in results then you can do so without using the console, e.g. by exporting the data or by using a markdown document.
Is there any feature of tibble that you in particular want ? because it seems like you just want a plain data.frame
Here is an example with the first 6 rows of iris as example
That is a good suggestion. But in fact my use of RMarkdown here is to make slides for teaching. I'm trying to show students the use of group_by() and summarise(). So the use of markdown is kind of incidental to my goal.
In addition, a message informs you of that choice, unless the result is ungrouped, the option "dplyr.summarise.inform" is set to FALSE , or when summarise() is called from a function in a package.