R View() does not display all columns of data frame

前端 未结 5 2021
梦毁少年i
梦毁少年i 2020-12-09 08:25

I have been adding columns to a data frame and using View() to check that it did what I expected. I have repeated lines of code along the lines of:



        
5条回答
  •  一向
    一向 (楼主)
    2020-12-09 08:33

    I just ran into this issue also. As suggested by gung above, the utils::View() function is helpful as a workaround for browsing all available columns in a data frame, whereas Rstudio still defaults to only the first 100 available columns when using the View() function.

    The workaround is very useful for identifying the column names for creating a subset from an existing data frame. However, it doesn't provide a quick column enumeration that the RStudio View() function allows. It's been a few years since the original post in 2013, but this limitation in the RStudio environment seems to still be effective in present-day 2017.

提交回复
热议问题