Statistics Open For All
SOFA - Statistics Open For All
The user-friendly, open-source statistics,
analysis & reporting package.

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

help:importing [2014/04/09 15:55] (current)
Line 1: Line 1:
 +[[http://​​userguide.php | Contents]]
 +====== Importing Spreadsheet/​CSV Data ======
 +===== Prepare Your Data =====
 +==== Clean the Spreadsheet/​CSV file ====
 +  * **One data type per column.** If you want a column analysed as a number e.g. 60, 102.5, 3, etc remove text such as "​n/​a",​ "​removed"​ etc. SOFA can cope with mixed data types by getting you to choose an overall type as you import (unless you select text, data of the other types is converted to missing values). But you will have to decide what to do for each and every column every time you import the data. So it is probably best to clean it before attempting an import.
 +  * **One header row (or none) only.** SOFA can't handle multiple header rows so tidy that up first
 +  * **Unique field names.** SOFA can handle duplicate field names (it appends 001, 002 etc to make the names unique) but it is probably better to make the names yourself.
 +  * **Remove empty rows and columns at beginning.** They may make the layout more appealing but SOFA expects the first row to be either the header row or the first data row. 
 +  * **Remove additional worksheets.** SOFA is only set up to import a single worksheet.
 +  * **(For CSV)** - Get rid off blanks in your csv e.g. \\ female, ,​43,​Austria\\ will treat the value after "​female"​ as " ", not as a missing value. So change it to\\ female,,​43,​Austria\\ Notice the commas are right next to each other.
 +==== Structure the Data for Analysis ====
 +SOFA expects your data to be organised in a particular way. E.g. should I have gender as a field with 1s and 2s in it and height as another field or should I have a column of results e.g. height, for each gender? SOFA only works with the first structure. Check [[help:​data_structure#​structuring_data_for_analysis|Structuring Data For Analysis]] if not sure or if there are problems.
 +===== Importing Local Data =====
 +SOFA Statistics currently supports importing data from Excel spreadsheets,​ ODS spreadsheets (OpenOffice Calc and Gnumeric etc), csv files and Google Docs spreadsheets.
 +NB you do not need to import data from SQL-type databases (currently MS Access, PostgreSQL, MySQL, MS SQL Server, and SQLite). ​ See [[:​help:​projects | Connecting to databases]]
 +  - Click on the "​Import Data" button on the main SOFA form
 +  - To import local data, click on "​Browse"​ and select csv, xls, or ods file\\ {{:​help:​import_local_browse.jpg|}}\\ {{:​help:​select_csv.jpg|}}
 +  - Provide the data with a unique name by which SOFA Statistics can identify the data.\\ {{:​help:​ready_to_import.jpg|}}\\ Then click on the "​Import"​ button to import the data into the default SOFA database "​sofa_db"​ with the table name provided.
 +[[http://​​videos.php#​importing_csv |{{:​help:​play_button.gif|}}]] A video is available showing how to import CSV data: [[http://​​videos.php#​importing_csv | Importing CSV data video]]
 +[[http://​​videos.php#​importing_odf |{{:​help:​play_button.gif|}}]] A video is available showing how to import Open Document Format (ODF) spreadsheets:​ [[http://​​videos.php#​importing_odf | Importing Open Document Format (ODF) spreadsheets video]]
 +[[https://​​watch?​v=bi59lO9JwWI |{{:​help:​play_button.gif|}}]] Another video is also available showing how to import data using SOFA Statistics: [[https://​​watch?​v=bi59lO9JwWI]]
 +===== Importing Google Docs Online Spreadsheets =====
 +  - Click on the “Import Data” button on the main SOFA form
 +  - Click on the "​Google spreadsheet"​ button\\ {{:​help:​import_gdata_option.jpg|}}
 +  - Enter the correct email and password details to sign into your Google account\\ {{:​help:​download_google_spreadsheet.jpg|}}\\ The existing spreadsheets are listed and then you can select a worksheet. If there is only one spreadsheet and one worksheet there is no  need to make a selection.
 +  - Click on the "​Download"​ button to download the data onto your local machine.
 +  - The data is saved in a local SOFA folder as an ods format file.
 +  - Change the SOFA Table Name and then click on the "​Import"​ button.\\ {{:​help:​import_downloaded_google_file.jpg|}}
 +[[http://​​videos.php#​importing_google |{{:​help:​play_button.gif|}}]] A video is available showing how to import Google Docs data: [[http://​​videos.php#​importing_google | Importing Google Docs spreadsheets video]]
 +[[http://​​userguide.php | Contents]]
 +[[:home | Wiki]]
help/importing.txt · Last modified: 2014/04/09 15:55 (external edit)