-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Bug]: Import Excel doesn't retain column names?! #3073
Comments
Hummm, this is again a FreeXL quirk, I'll see what we can do. FreeXL does not recognize the column name with underscores. A temporary solution is to copy and paste the column name from Excel/libreOffice.
I introduced it because it is stable and lightweight enough and we didn't use R libraries as data importing tools but only lightweight dependencies to reading files. @boutinb @JorisGoosen let’s discuss the solution:
|
Well 'readxl' uses libxls apparently, maybe its better. But freexl seems to work mostly, we could just fork, fix it it and use that fixed version while we wait for them to update? |
|
There are something different, @patc3 could you share a sample file with it? because I cannot reproduce it again. I guess only with some column names in .xlsx created by MS-Excel? |
Something odd: this comes from a data.frame I exported from R using writexlsx (I think--maybe some other R package), and when I load it directly in JASP the variable names import as V1 V2 etc., but if I open the Excel file and save it (without changing anything), then JASP opens it correctly. So maybe some minor, invisible detail about how R exports to Excel, that Excel fixes when you open it with Excel and save. I don't know. But my point is: My original data (exported from R) has that problem when I import it in JASP, but as soon as I modify the file using Excel the problem is fixed. So I can't reproduce the problem either (probably could reproduce simply by exporting as Excel file from R and importing into JASP without going into Excel and saving the file) |
@patc3 well, maybe just export to csv from R? |
@JorisGoosen I don't need help importing data into JASP, I was merely testing the new Excel import functionality |
Sure, thanks! It's more that it also sounds like a bit of a bug in that R-package? |
hummmm, it's indeed a bug for column names with a |
JASP Version
0.19.2
Commit ID
No response
JASP Module
Unrelated
What analysis are you seeing the problem on?
No response
What OS are you seeing the problem on?
Windows 10
Bug Description
The new import Excel in 0.19.2 seems to work except that it replaces all variable names with V1 through Vk (where k is number of columns)? Also I see from August that this uses freexl, never heard of it and I'm not sure why it's not using one of the several established Excel libraries in R? I use readxl to read Excel files in R
Excel file:
Imported into JASP:
Expected Behaviour
Retain column names when importing Excel file
Steps to Reproduce
Log (if any)
No response
More Debug Information
No response
Final Checklist
The text was updated successfully, but these errors were encountered: