Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tk3369 committed Jan 28, 2018
1 parent f33d050 commit 0dd9424
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ julia> head(df,5)
### Inclusion/Exclusion of Columns
**Column Inclusion**
It is always faster to read only the columns that you need. The `include_columns` argument comes in handy:
```
Expand All @@ -142,6 +144,8 @@ Read data set of size 1440 x 4 in 0.004 seconds
6948.01993-06-01 │ SOFA │ 1993.0
```
**Column Exclusion**
Likewise, you can read all columns except the ones you don't want as specified in `exclude_columns` argument:
```
Expand All @@ -158,6 +162,23 @@ Read data set of size 1440 x 6 in 0.031 seconds
6 │ CANADA │ EDUCATION │ 486.0 │ FURNITURE │ 2.0 │ EAST │
```
**Case Sensitivity and Column Number**
Column symbols are matched in a case insensitive manner with SAS column names.
Both `include_columns` and `exclude_columns` accept column number. In fact, you can mixed column symbols and column numbers as such:
```
julia> readsas("productsales.sas7bdat", include_columns=[:actual, :predict, 8, 9, 10])[:column_names]
Read productsales.sas7bdat with size 1440 x 5 in 0.00511 seconds
5-element Array{String,1}:
"ACTUAL"
"PREDICT"
"QUARTER"
"YEAR"
"MONTH"
```
### Incremental Reading
If you need to read files incrementally, you can do so as such:
Expand Down

0 comments on commit 0dd9424

Please sign in to comment.