You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
ViewingWideWithScrolling
(21 Nov 2006,
TheresaScott
)
(raw view)
E
dit
A
ttach
---+ Wide-view using Less in R Ever have a matrix or data frame with lots of columns and wanted to view it all together instead of chopped up? Here's how: <highlight> oldPager <- getOption("pager") options(width=10000) options(pager="less -S") wideMatrix <- matrix(sample(1:100, 10000, replace=TRUE), ncol=100) page(wideMatrix, method="print") </highlight> This will allow you to scroll horizontally with the arrow keys. To go back to the default behavior, run: <highlight> options(width=80) options(pager=oldPager) </highlight> (%X% Only applicable in R shells run from the console)
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r2 - 21 Nov 2006,
TheresaScott
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback