J. Pedro Granadeiro
2004-May-17 17:24 UTC
[R] displaying column numbers when listing structure of an object
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