DannyBen/datamix

View on GitHub
examples/to_tsv/README.md

Summary

Maintainability
Test Coverage
# to_tsv

Returns a tab delimited version of the table.

```ruby
require 'datamix'
using DataMix

data = file '../_data/basic.csv'
puts data.to_tsv

```

# Output

```
date    price
2015-03-11    2044
2015-03-12    2041
2015-03-13    2064
2015-03-16    2055
2015-03-17    2080
2015-03-18    2072
2015-03-19    2098
2015-03-20    2090
2015-03-23    2107
2015-03-24    2103
2015-03-25    2093
2015-03-26    2059
2015-03-27    2055
2015-03-30    2064
2015-03-31    2084
2015-04-01    2067
2015-04-02    2060
2015-04-06    2064
2015-04-07    2080
```