list output truncated - How to expand listed variables with str() in R

雨燕双飞 提交于 2019-11-29 21:21:22

You can use the argument list.len:

str(df, list.len=ncol(df))

and if you want to print more observations you could set the argument vec.len, also have a look at ?str for documentation of all arguments.

By using argument list.len one can choose the number of variables in the data frame to list. There are two options:

a) You choose the number of variables that you want to list;

str(df, list.len = 602) # in this case I'm listing 602 variables.

b) You choose to list the total number of variables of the data frame (as mentioned by user1981275);

str(df, list.len = ncol(df))

Check R help for more info

> ?str
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!