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

Feature request: factors in col_types #681

Open
qdread opened this issue Feb 9, 2022 · 2 comments
Open

Feature request: factors in col_types #681

qdread opened this issue Feb 9, 2022 · 2 comments

Comments

@qdread
Copy link

qdread commented Feb 9, 2022

I would like to request that the col_types argument of read_excel() and related functions allow specifying factor as a column type. This is especially relevant for columns that are automatically guessed to be numeric but that I would like to treat as factors (e.g., numerical IDs of experimental blocks). Of course it is possible to coerce those columns to factor in a later step, but it would be helpful if it were possible to do this within read_excel().

@jennybc
Copy link
Member

jennybc commented Mar 17, 2022

Yes. readxl is going to get a major upgrade re: column type specification and that will absolutely include supporting factors.

@Sibojang9
Copy link

Sibojang9 commented Sep 6, 2023

Any update on this request? has this been implemented? It seems quite some time now. Thanks.

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

3 participants