Skip to content

[Feature Request]: Show preview of csv-files to choose correct separator (comma etc) #3608

@sysoeva

Description

@sysoeva

JASP Version

0.95.0

Commit ID

No response

JASP Module

Unrelated

What analysis are you seeing the problem on?

opening file

What OS are you seeing the problem on?

Windows 10

Bug Description

When I open the csv-file with semicolon separator (where commas are used for separation of fractional part of numbers) the file is opened but some values are read incorrectely. For example, the value "0,435" became "435" instead of "0.435".
The same file was read correctly in previous version of JASP (see screenshot).

The file in example contains 6 values, which must be read as:

variable Valence:
0.435
1.286
0.118

variable Arousal:
2.87
4
2.059

But they are read as:

variable Valence:
435
1,286
118

variable Arousal:
2.87
4
2,059

That is the values in JASP 0.95.0 became wrong.

Image

!problem_Open_csv_file.csv

Expected Behaviour

The values in example file should be read as:

variable Valence:
0.435
1.286
0.118

variable Arousal:
2.87
4
2.059

Steps to Reproduce

Open -> Computer -> file from attachement

Log (if any)

No response

More Debug Information

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions