Search code examples
rdataframeoutput

R - Better way to view data frame outputs on console


I'm looking for a better way to view output of the data frame in the console.
The computer that I'm using has high security restrictions, so installing many of the more popular packages such as tidyr and tibble is not possible.

What I want is for the ouput to be more compact and not wrap in the console.

Is there a way to use base R to improve the console output for data frames?


Solution

  • You could edit your data.frame without changing it. It will open a new window for you to see. There is an editor parameter which allows to choose an editor of your choise.

    Or you could page through the data:

    page(mtcars, method = "print")