csvimport
Differences
This shows you the differences between two versions of the page.
| — | csvimport [2022/08/31 18:44] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Import en CSV ====== | ||
| + | ==== 1. Leave default options or Select " | ||
| + | The better choice is to respect the default options. | ||
| + | If you want to reimport correctly a CSV file exported from xper3 with the default options, we advice to leave the default options and don't check " | ||
| + | |||
| + | ==== 2. To build your csv file, please maximum respect the options default as following : ==== | ||
| + | |||
| + | * cell delimiter => **;** (semicolon - by default) or **,** (comma - by selecting Advanced options | ||
| + | * text delimiter => **"** (double quote). Useful only if a semicolon (;) is present into a cell, usually present for the numerical values, in any case it's better if you leave this double quote. | ||
| + | * Data in rows : Items (by default) or Descriptors (in option) | ||
| + | * Data in columns : Descriptors (by default) or Items (in option) | ||
| + | * **Inapplicable state** => As dependencies cannot be applied with a CSV format, inapplicable states cannot be recognized. So you have to understand that an inapplicable states will be see like a not described value. In other words put a not descrided value or an inapplicable states value will come back to the same. | ||
| + | * **no cells should be empty** | ||
| + | |||
| + | **Categoricals values** | ||
| + | |||
| + | * Separator between several states => **&** eg: {blue}& | ||
| + | * States should be surrounded by a hug => **{}** eg : {Dark green} or for two states {blue}& | ||
| + | * Unknown state => **?** (Never leave an empty cell) | ||
| + | * Not described state => **not described** | ||
| + | * Inapplicable state : **not applicable** | ||
| + | |||
| + | **Quantitatives values** | ||
| + | |||
| + | * all values are formed by **[min; | ||
| + | * the min value is less than or equal to the max value | ||
| + | * min and max values are integer or decimal, eg: **[1;8] or [2.46;3] or [0.791; | ||
| + | * Into your CSV file the quantitatives values must be enclosed in double quote, eg: **" | ||
| + | * Unknown state => **[?;?]** (Never leave an empty cell) | ||
| + | * Not described state => **[;]** | ||
| + | * Inapplicable state : **[not applicable]** | ||
| + | |||
| + | |||
| + | Here you have a sample csv file that you can download and test => {{ :: | ||
| + | |||
| + | < | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | |||
| + | The same example but with a comma cell delimiter\\ | ||
| + | **Note** : in this case you need select " | ||
| + | |||
| + | < | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | |||
| + | **Example with Data in rows : Descriptors and Data in columns : Items** | ||
| + | |||
| + | < | ||
| + | ;" | ||
| + | "Body colour";" | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "Anal plate";" | ||
| + | " | ||
| + | " | ||
| + | </ | ||
| + | |||
| + | ==== 3. How to save your CSV file ==== | ||
| + | |||
| + | We suggest using OpenOffice or Libreoffice to build the CSV files, but this should be possible with the Microsoft Suite. | ||
| + | |||
| + | * Save your file as csv | ||
| + | * Select "Edit filter settings" | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | * Select the parameters as below. **The UTF8 character set is recommended** particularly in the case of accented characters such as French or Spanish | ||
| + | |||
| + | {{ : | ||
