8

Can anyone tell me how to resize a column in the source pane of RStudio? I tried renaming the second column from "n" to "Total number" but it just wraps the header text.

Screen grab of problem

Edit: Earlier screen grab did not, in fact, show the problem. This does. Screen with the numbers truncated.

3
  • AFAIK you can't really adjust the column widths in the Viewer. In this case, why do you want to resize it? It looks like none of your numbers is truncated... Maybe you could rename it Total_number?
    – Scarabee
    Feb 15, 2017 at 2:41
  • Just added a screen grab showing the numbers truncated.I think I know what happened as I was able to replicate it. I use Cmd+ on the Mac to zoom in and out and looks like I had zoomed in to look at something, which action untruncated the numbers, but I went on with screen grab not noticing what had happened. I spent some time figuring out how to widen the column, gave up and took it to a spreadsheet. I guess zooming in is a work-around, at least for small tables.
    – armipunk
    Feb 15, 2017 at 3:50
  • Ok. I can't reproduce it, on my machine everything is displayed correctly.
    – Scarabee
    Feb 15, 2017 at 11:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.