r/R_Programming • • Jan 09 '17

How to edit str()?

I am trying to edit the function str() so that it conveniently lists the column number next to the column name. I found "methods(str)", then "getAnywhere(str.data.frame)", which shows me the code I want to edit, but I can't figure out how to edit it. I am fairly certain I can alter the code to be the way I want it, but what command allows me to do so? Thanks!

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/beren323 Jan 10 '17

Next free night I get I'll see if I can get it the way I want it.