head() function in R package dplyr

you can now use the glimpse() verb in dplyr 0.2 :

from https://github.com/hadley/dplyr/releases :

"glimpse() makes it possible to see all the columns in a tbl, displaying as much data for each variable as can be fit on a single line."


As Arun said, it's because of the print.tbl_df method. Just do:

print.data.frame(head(your_dplyr_dataframe))

To control how many columns are displayed, explicitly call print(), setting the tibble.width argument.

print(yourdataframe, tibble.width = Inf)

To allow this for every tibble that you print, set the tibble.width global option.

options(tibble.width = Inf)

See ?print.tbl_df for more information.

Tags:

R

Dplyr