Skip to content

Printing with Header & no of observations

2 messages · Shivi82, John Kane

#
HI Team,
A quick question.

When I used the print option in R to see the output of my syntax I do not
see the headers or column names. Is there a way to see the headers in the
print.
Also as most of the datasets we work today have huge number of observations
but when I print it only shows a portion of the output. Is there a
limitation to the number of rows that can be printed.

Kindly suggest. Thanks, Shivi



--
View this message in context: http://r.789695.n4.nabble.com/Printing-with-Header-no-of-observations-tp4707747.html
Sent from the R help mailing list archive at Nabble.com.
#
I am not totally clear on the header question but would something like ?head help here?  It will show a certain number of rows of data with headers included .  I think the default is 6 rows but if all you want to do is check names and a bit of data something like head(xx, 2) works nicely.

RE output -- yes there is a limit, http://stackoverflow.com/questions/6758727/how-to-increase-the-limit-for-max-print-in-r.
If you want to examine 'really' huge outputs you might want to use ?sink or perphaps write the file to disc (?write.file) and examine it in a text editor.

John Kane
Kingston ON Canada
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!