Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glimpse col number #327

Open
ghost opened this issue May 28, 2021 · 2 comments
Open

glimpse col number #327

ghost opened this issue May 28, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented May 28, 2021

Is there any way to make glimpse() show column numbers? This feature would be very useful, especially when working with large datasets which require operating with column range as opposed to single columns.

@ghost ghost changed the title glimpse feature glimpse col number May 28, 2021
@krlmlr
Copy link
Member

krlmlr commented Jul 22, 2021

Interesting idea. Generally, I tend to always address columns by name, because addressing by column index can be very brittle: insert one column, and the indexes are off. I do acknowledge the use case, but I'd rather avoid encouraging addressing by column index.

Would you like to contribute a pull request that adds an optional argument to glimpse(), defaulting to NULL (=no column index)?

@sjackson1997
Copy link

My knowledge of coding is poor at best, but I will look later to see if this is something I can do. I came here looking to see if this request had been made, and while I agree with the brittle-ness argument about using column indexes, when I'm working interactively sometimes with column 57 (or is it 58?), it would be nice to see the column numbers quickly using glimpse().

But it would be better if I can help myself by contributing code, so that's on me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants