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

Lost column #152

Closed
kablag opened this Issue Dec 18, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@kablag

kablag commented Dec 18, 2015

I have strange bug.
Third party software generates xls files. I try to get data from them with such code:

read_excel("test.xls",
                    sheet = "Multicomponent Data",
                    skip = 7) %>% colnames()
[1] "Well"  "Cycle" "FAM"   "ROX"

and got only 4 columns, but data sheet has 5 columns (last column is lost).

When I open this file in Excel 2013 (it views all columns) and save with the new name (test2.xls) everything work fine:

read_excel("test2.xls",
                    sheet = "Multicomponent Data",
                    skip = 7) %>% colnames()
[1] "Well"  "Cycle" "FAM"   "ROX"   "VIC"

OS is Windows 7/10.

test_xls.zip

@jamesclarence

This comment has been minimized.

jamesclarence commented Mar 10, 2016

I think I'm having the same issue with a third party software that generates .xls files, too. @kablag When you open the .xls file in Excel, do you get [Compatibility Mode] next to the file name at the top, something like "test [Compatibility Mode] - Excel"? That's what I see when I open my generated .xls files.

I'm using Windows 7 Pro and Excel 2013.

@kablag

This comment has been minimized.

kablag commented Mar 10, 2016

@jamesclarence I got this message "test [Compatibility Mode] - Excel", but Excel always writes this when you open xls instead of xlsx.

@jamesclarence

This comment has been minimized.

jamesclarence commented Mar 14, 2016

Gotcha. Either way, I have had to "save as" the third party generated Excel file before using read_excel in order to read all the columns into R.

@jennybc

This comment has been minimized.

Member

jennybc commented Feb 24, 2017

Suspect duplicate of #128. Thanks for the example sheet!

@jennybc jennybc closed this Feb 24, 2017

@jennybc jennybc reopened this Feb 24, 2017

@jennybc

This comment has been minimized.

Member

jennybc commented Feb 24, 2017

I don't think this is a duplicate after all, but I do see what's going on here.

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