https://github.com/jvirtanen/dada
Generate tabular text data
https://github.com/jvirtanen/dada
csv data dsv generator tsv
Last synced: 8 months ago
JSON representation
Generate tabular text data
- Host: GitHub
- URL: https://github.com/jvirtanen/dada
- Owner: jvirtanen
- License: mit
- Created: 2012-06-07T16:36:06.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T20:37:56.000Z (over 4 years ago)
- Last Synced: 2023-03-16T09:45:28.736Z (over 2 years ago)
- Topics: csv, data, dsv, generator, tsv
- Language: C
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Dada
Dada is a simple program for generating tabular text data.
## Requirements
Dada requires a C99 compiler and GNU Make.
## Installation
To build, run:
```
make
```To install, run:
```
make install
```> The default installation location is `$HOME`. Define the environment variable
> `$PREFIX` to specify an alternative installation location. For example:
>
> PREFIX="/usr/local" make install## Usage
To generate one kilobyte of [tab-separated values][TSV], run:
```
dada
```You can specify the size of the data with the `-s` option. To generate one
gigabyte of data, run:
```
dada -s1g
```If you want to generate, for example, [comma-separated values][CSV] instead of
TSV, you have to set the field delimiter with the `-d` option. To generate CSV,
run:
```
dada -d,
```By default, the number of columns is randomly chosen. However, you can set it
with the `-c` option. To generate data with eight columns, run:
```
dada -c8
```[CSV]: http://tools.ietf.org/html/rfc4180
[TSV]: http://www.iana.org/assignments/media-types/text/tab-separated-values## Development
To execute the tests, run:
```
make test
```Executing the tests requires Python.
## License
Copyright 2012 Jussi Virtanen.
Dada is released under the MIT License. See `LICENSE.txt` for details.