-
Notifications
You must be signed in to change notification settings - Fork 194
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: Allow recycling of col_type #114
Comments
@rickdonnelly There is actually a way to extract the number of columns in an Excel sheet before reading it in. While I agree that it would be nice to have a recycling feature, this is the workaround I've been using:
You can obviously replace "text" in the Hope this helps! |
readxl/R/RcppExports.R contains a number of helper functions that are not exported. Some of these could be useful for reading in excel sheets with unknown characteristics ahead of time (e.g. for linux users with no access to excel): |
Covered by #198 |
I tried to set a single value for col_type to text for an Excel sheet with multiple columns. I got this error message:
Error: Need one name and type for each column
Since there is no way to extract the number of columns before reading the file it would be great if col_type could recycle its arguments when the list is shorter than the number of columns, as read.table, read_table, and fread all do.
The text was updated successfully, but these errors were encountered: