dplyr显示tbl_df中小data.frame的所有行和列 [英] dplyr show all rows and columns for small data.frame inside a tbl_df
本文介绍了dplyr显示tbl_df中小data.frame的所有行和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何强制 dplyr
显示相当小的data.frame的所有列和行。下面的 ddf
对象,例如:
How do I force dplyr
to show all columns and rows of a rather small data.frame. The ddf
object below, for example:
df = data.frame(a=rnorm(100), b=c(rep('x', 50), rep('y', 50)), c=sample(1:20, 100, replace=T), d=sample(letters,100, replace=T), e=sample(LETTERS,100,replace=T), f=sample("asdasdasdasdfasdfasdfasdfasdfasdfasdfasd asdfasdfsdfsd", 100, replace=T))
ddf= tbl_df(df)
推荐答案
如果您仍然想使用dplyr并打印数据框,只需运行
if you want to still use dplyr and print your dataframe just run
print.data.frame(ddf)
ddf
这篇关于dplyr显示tbl_df中小data.frame的所有行和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文