Skip to content
Prev 78872 / 398502 Next

Newbie problem with read.table

On Wed, 12 Oct 2005, Jan Conrad wrote:

            
$width
[1] 80

says what the width of your console is. Columns beyond this get wrapped 
gently (not each row by itself) - it can be set different values if you 
choose - try:

ow <- options("width")
options(width=40)
options("width")
ttbar
options(ow)
options("width")

So this is just the print function for data.frame objects doing its unsung
job. A very useful function for looking at things when they don't seem to
be what you think is str(), which concisely says what the structure of an
object is, so str(ttbar)  should tell you that it is a data frame of 10
variables and 2 observations.