You can import both local and remote CSV / Delimited File Data quickly.
Click '+' button next to 'Data Frames' and select 'Import File Data'.
If you import CSV / Delimited File on your desktop or laptop, make sure Local tab is selected. If you import a file from remote server like Amazon S3, Dropbox, etc make sure Remote tab is selected. Click 'Text File (CSV, delimited)'
If you select local, file picker shows up so select a file to import.
if you select remote, small dialog shows up so enter a URL for the file.
Input parameters are same for local and remote file import.
Set these parameters.
Encoding - File Encoding. By default, it shows best guessed encoding for you. you can manually select a correct one from pulldown list if default guessed encoding is not correct.
Separator - Single character used to separate fields within a record.
Decimal mark - Decimal mark used for numeric values in the CSV / Delimited File.
Thousand mark - Thousand mark used in numeric vales in the CSV/ Delimited File
Quote - Single character used to quote strings. Either double or Single
Skip first N rows - Number of lines to skip before reading data.
Treat these as NA - String(s) to use for missing values. Use comma(,) to enter multiple Strings. (e.g: N/A, Not Applicable)
First Row as Header - Either TRUE or FALSE.
If TRUE, the first row of the input will be used as the column names, and will not be included in the data frame. If FALSE, column names will be generated automatically: X1, X2, X3 etc.
Comment Character - A string used to identify comments. Any text after the comment characters will be silently ignored.
Trim White Space - Should leading and trailing whitespace be trimmed from each field before parsing it?
Column Types - See below section for details.
you can override column type by passing column name and data type pair with
columnName = 'type' syntax. For Example, if
value column is detected as integer but you want to import it as double, you can set
value = 'd'. (d is for double). If you want to override multiple column types, you can do so by separating each pair with comma(,) like this.
key = 'i', value = 'd'
Supported data types for overrides are:
T (Date time)
Note : To specify Column Types, you need to disable "Auto Detect Data Type" like the screenshot below.
Also, if the column name contains special characters, use backtick ` to escape column names like `Column A` = 'c'
On top of input parameters, you can also use checkboxes on the preview table to include/exclude columns. if you uncheck the checkboxes on the columns, these columns are excluded when you save the data.
Click Preview button to see the data in CSV / Delimited File. You can limit number of rows for the preview by selecting number from pulldown list on the preview table. If it looks ok, then you can click 'Import' to import the whole CSV / Delimited data into Exploratory.