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.
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?
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.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Total_number
?