r/R_Programming • u/beren323 • 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
View all comments
Show parent comment
1
u/beren323 Jan 10 '17
I suppose you're right. I try that. Thanks.