[R] displaying column numbers when listing structure of an object

About this list Date view Thread view Subject view Author view Attachment view

From: J. Pedro Granadeiro (jpgranadeiro@fc.ul.pt)
Date: Tue 18 May 2004 - 03:24:09 EST


Message-id: <200405171824.09878.jpgranadeiro@fc.ul.pt>

Dear R helpers,

Is there any simple way to display the column(s) numbers(s) when listing the
structure of objects (especially for objects with large number of columns)?

Example on a data.frame:

 str(data.frame(v1=c(1:10),v2=(11:20)))
`data.frame': 10 obs. of 2 variables:
1.. $ v1: int 1 2 3 4 5 6 7 8 9 10
2.. $ v2: int 11 12 13 14 15 16 17 18 19 20

I checked the examples in ?str and the searchable mail archives, and made
several attempts with "indent.str", but it was hopeless...

Thank you.

Josť Pedro Granadeiro

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST